From 96560f76816d74df69cd08b289858f41f3ae44de Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 23 Aug 2004 04:00:53 -0700 Subject: Use inline function instead of macro. This means we won't get any warnings about unused variables - they _are_ used in some configurations. --- include/linux/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux/cpu.h') diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 5925e83d9794..7130cef0f137 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -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_ */ -- cgit v1.2.3