Re: + memory-hotplug-compile-fix.patch added to -mm tree

From: Dave Hansen
Date: Mon Mar 06 2006 - 10:41:57 EST


On Fri, 2006-03-03 at 23:52 -0800, akpm@xxxxxxxx wrote:
> diff -puN include/linux/memory_hotplug.h~memory-hotplug-compile-fix include/linux/memory_hotplug.h
> --- devel/include/linux/memory_hotplug.h~memory-hotplug-compile-fix 2006-03-03 23:50:50.000000000 -0800
> +++ devel-akpm/include/linux/memory_hotplug.h 2006-03-03 23:51:45.000000000 -0800
> @@ -6,6 +6,10 @@
> #include <linux/mmzone.h>
> #include <linux/notifier.h>
>
> +struct page;
> +struct zone;
> +struct pglist_data;

There are places in that file where we dereference both zone and pgdat
struct pointers. struct page, on the other hand, is only a function
argument. So, the predeclaration should be fine for pages. But, it
probably won't do any good for zones or pgdats.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/