From: Andi Kleen Date: Thu, 10 Jun 2010 11:10:36 +0000 (+0200) Subject: percpu, x86: Avoid warnings of unused variables in per cpu X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23b764d056bfec0a212a67229074ac281e86e021;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git percpu, x86: Avoid warnings of unused variables in per cpu Avoid hundreds of warnings with a gcc 4.6 -Wall build. Signed-off-by: Andi Kleen Acked-by: Tejun Heo Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 0797e748d280..cd28f9ad910d 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -77,6 +77,7 @@ do { \ if (0) { \ pto_T__ pto_tmp__; \ pto_tmp__ = (val); \ + (void)pto_tmp__; \ } \ switch (sizeof(var)) { \ case 1: \ @@ -115,6 +116,7 @@ do { \ if (0) { \ pao_T__ pao_tmp__; \ pao_tmp__ = (val); \ + (void)pao_tmp__; \ } \ switch (sizeof(var)) { \ case 1: \