projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/arch/x86/include/asm/percpu.h
b/arch/x86/include/asm/percpu.h
index 0797e748d2801839fecf63915a8d2d857347884c..cd28f9ad910d1a8bc83fa0c4c6d1f1ca907e042f 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: \