--- zzzz-none-000/linux-2.6.39.4/include/linux/vmstat.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/vmstat.h 2021-11-10 13:38:17.000000000 +0000 @@ -108,6 +108,11 @@ } extern void all_vm_events(unsigned long *); + +#if defined(CONFIG_AVM_POWERMETER) +extern void __all_vm_events(unsigned long *ret); +#endif/*--- #if defined(CONFIG_AVM_POWERMETER) ---*/ + #ifdef CONFIG_HOTPLUG extern void vm_events_fold_cpu(int cpu); #else @@ -312,7 +317,7 @@ #define set_pgdat_percpu_threshold(pgdat, callback) { } -static inline void refresh_cpu_vm_stats(int cpu) { } +static inline void refresh_cpu_vm_stats(int cpu __attribute__((unused))) { } #endif #endif /* _LINUX_VMSTAT_H */