The patch titled lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef has been added to the -mm tree. Its filename is lib-percpu_counterc-enclose-hotplug-only-variables-in-hotplug-ifdef.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef From: Glauber Costa <glommer@xxxxxxxxxxxxx> These variables are only used when CONFIG_HOTPLUG_CPU is enabled, they are ifdef'ed everywhere else. So don't define them when CONFIG_HOTPLUG_CPU is not enabled. Signed-off-by: Glauber Costa <glommer@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/percpu_counter.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN lib/percpu_counter.c~lib-percpu_counterc-enclose-hotplug-only-variables-in-hotplug-ifdef lib/percpu_counter.c --- a/lib/percpu_counter.c~lib-percpu_counterc-enclose-hotplug-only-variables-in-hotplug-ifdef +++ a/lib/percpu_counter.c @@ -10,8 +10,10 @@ #include <linux/module.h> #include <linux/debugobjects.h> +#ifdef CONFIG_HOTPLUG_CPU static LIST_HEAD(percpu_counters); static DEFINE_MUTEX(percpu_counters_lock); +#endif #ifdef CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER _ Patches currently in -mm which might be from glommer@xxxxxxxxxxxxx are lib-percpu_counterc-enclose-hotplug-only-variables-in-hotplug-ifdef.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html