projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4384df
)
percpu, x86: Avoid warnings of unused variables in per cpu
author
Andi Kleen
<andi@firstfloor.org>
Thu, 10 Jun 2010 11:10:36 +0000
(13:10 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 10 Jun 2010 22:03:45 +0000
(
00:03
+0200)
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>
arch/x86/include/asm/percpu.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/percpu.h
b/arch/x86/include/asm/percpu.h
index
0797e74
..
cd28f9a
100644
(file)
--- 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: \