]> git.hungrycats.org Git - linux/commitdiff
Use inline function instead of macro.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 11:00:53 +0000 (04:00 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 11:00:53 +0000 (04:00 -0700)
This means we won't get any warnings about unused
variables - they _are_ used in some configurations.

include/linux/cpu.h

index 5925e83d9794331921744f48e493b6df6fc16e8e..7130cef0f1375213714bd25b2aa7d5e46391dc75 100644 (file)
@@ -74,7 +74,7 @@ int cpu_down(unsigned int cpu);
 #define hotcpu_notifier(fn, pri)
 
 /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */
-#define cpu_is_offline(cpu) 0
+static inline int cpu_is_offline(int cpu) { return 0; }
 #endif
 
 #endif /* _LINUX_CPU_H_ */