diff options
author | Magnus Damm <damm@opensource.se> | 2006-12-22 04:08:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-22 11:55:48 -0500 |
commit | e903387f1ebe3a7ddb93cd49c38341d3632df528 (patch) | |
tree | f1e8b1a5f5b774c93331c8edd733c49f8da55512 | |
parent | 67af63a6ab4ce064f807bdce614fe0fa2bcea252 (diff) |
[PATCH] fix vm_events_fold_cpu() build breakage
fix vm_events_fold_cpu() build breakage
2.6.20-rc1 does not build properly if CONFIG_VM_EVENT_COUNTERS is set
and CONFIG_HOTPLUG is unset:
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
mm/built-in.o: In function `page_alloc_cpu_notify':
page_alloc.c:(.text+0x56eb): undefined reference to `vm_events_fold_cpu'
make: *** [.tmp_vmlinux1] Error 1
[akpm@osdl.org: cleanup]
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/vmstat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 532360010919..5e9803ed17fc 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -74,7 +74,13 @@ static inline void count_vm_events(enum vm_event_item item, long delta) | |||
74 | } | 74 | } |
75 | 75 | ||
76 | extern void all_vm_events(unsigned long *); | 76 | extern void all_vm_events(unsigned long *); |
77 | #ifdef CONFIG_HOTPLUG | ||
77 | extern void vm_events_fold_cpu(int cpu); | 78 | extern void vm_events_fold_cpu(int cpu); |
79 | #else | ||
80 | static inline void vm_events_fold_cpu(int cpu) | ||
81 | { | ||
82 | } | ||
83 | #endif | ||
78 | 84 | ||
79 | #else | 85 | #else |
80 | 86 | ||