Redefine {un}register_hotcpu_notifier() !HOTPLUG_CPU stubs
authorSatyam Sharma <satyam@infradead.org>
Thu, 18 Oct 2007 10:06:38 +0000 (03:06 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:28 +0000 (14:37 -0700)
commit761bb431908e84d1793c5eb6c2ae2cc4926bed3e
tree6b9afbc8b7156573da0d095390e4dbb3b16fd82c
parent4603ac180a824197c2262747948d0179eb076e9c
Redefine {un}register_hotcpu_notifier() !HOTPLUG_CPU stubs

The return of the present "do {} while" based stub definition of
register_hotcpu_notifier() cannot be checked.  This makes the stub
asymmetric w.r.t.  the real HOTPLUG_CPU=y implementation that is
int-returning.  So let us redefine this to be consistent with the full
version.  Also do the same for unregister_hotcpu_notifier().

We cannot define these as static inline functions due to an existing GCC
bug (#33172).  So define as macros that return appropriately instead (int
'0' for the register_hotcpu_notifier case and void for
unregister_hotcpu_notifier).

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/cpu.h