Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ak@linux.intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Andi Kleen and committed by
Ingo Molnar
23b764d0 a4384df3

+2
+2
arch/x86/include/asm/percpu.h
··· 77 77 if (0) { \ 78 78 pto_T__ pto_tmp__; \ 79 79 pto_tmp__ = (val); \ 80 + (void)pto_tmp__; \ 80 81 } \ 81 82 switch (sizeof(var)) { \ 82 83 case 1: \ ··· 116 115 if (0) { \ 117 116 pao_T__ pao_tmp__; \ 118 117 pao_tmp__ = (val); \ 118 + (void)pao_tmp__; \ 119 119 } \ 120 120 switch (sizeof(var)) { \ 121 121 case 1: \