From: Ingo Molnar Date: Wed, 30 Jan 2008 12:31:10 +0000 (+0100) Subject: x86: avoid build warning X-Git-Tag: v2.6.25-rc1~1143^2~618 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2355188570790930718fb72444cddc2959039d9d;p=linux-2.6-omap-h63xx.git x86: avoid build warning fix this build warning: include/asm/topology_32.h: In function 'node_to_first_cpu': include/asm/topology_32.h:66: warning: unused variable 'mask' Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 85bd790c201..7047f58306a 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -218,8 +218,8 @@ int __first_cpu(const cpumask_t *srcp); int __next_cpu(int n, const cpumask_t *srcp); #define next_cpu(n, src) __next_cpu((n), &(src)) #else -#define first_cpu(src) 0 -#define next_cpu(n, src) 1 +#define first_cpu(src) ({ (void)(src); 0; }) +#define next_cpu(n, src) ({ (void)(src); 1; }) #endif #define cpumask_of_cpu(cpu) \