Skip to contentSkip to conversation

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

DISCUSSION Dave Hansen 1 participant 1 message Mar 6, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

include/linux/memory_hotplug.h 2006-03-03 23:51:45.000000000 -0800 line 11

Quoted 10 lines · On Fri, 2006-03-03 at 23:52 -0800, [email protected] wrote:

diff -puN include/linux/memory_hotplug.h~memory-hotplug-compile-fix include/linux/memory_hotplug.h

include/linux/memory_hotplug.h 2006-03-03 23:51:45.000000000 -0800 renamed from include/linux/memory_hotplug.h~memory-hotplug-compile-fix 2006-03-03 23:50:50.000000000 -0800 +3 -0
@@ -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