[PATCH] fix vm_events_fold_cpu() build breakage
[safe/jmp/linux-2.6] / include / linux / vmstat.h
index 5323600..5e9803e 100644 (file)
@@ -74,7 +74,13 @@ static inline void count_vm_events(enum vm_event_item item, long delta)
 }
 
 extern void all_vm_events(unsigned long *);
+#ifdef CONFIG_HOTPLUG
 extern void vm_events_fold_cpu(int cpu);
+#else
+static inline void vm_events_fold_cpu(int cpu)
+{
+}
+#endif
 
 #else