From: Linus Torvalds Date: Thu, 27 May 2010 17:32:08 +0000 (-0700) Subject: Avoid warning when CPU hotplug isn't enabled X-Git-Tag: v2.6.35-rc1~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00b9b0af5887fed54e899e3b7f5c2ccf5e739def;p=pandora-kernel.git Avoid warning when CPU hotplug isn't enabled Commit e9fb7631ebcd ("cpu-hotplug: introduce cpu_notify(), __cpu_notify(), cpu_notify_nofail()") also introduced this annoying warning: kernel/cpu.c:157: warning: 'cpu_notify_nofail' defined but not used when CONFIG_HOTPLUG_CPU wasn't set. So move that helper inside the #ifdef CONFIG_HOTPLUG_CPU region, and simplify it while at it. Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed