projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c6f62
)
x86, gcc-4.6: Avoid unused by set variables in rdmsr
author
Andi Kleen
<
[email protected]
>
Tue, 20 Jul 2010 22:19:48 +0000
(15:19 -0700)
committer
H. Peter Anvin
<
[email protected]
>
Tue, 20 Jul 2010 22:38:18 +0000
(15:38 -0700)
Avoids quite a lot of warnings with a gcc 4.6 -Wall build
because this happens in a commonly used header file (apic.h)
Signed-off-by: Andi Kleen <
[email protected]
>
LKML-Reference: <
201007202219
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: H. Peter Anvin <
[email protected]
>
arch/x86/include/asm/msr.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/msr.h
b/arch/x86/include/asm/msr.h
index c5bc4c2d33f56399f98b55975abc23b3d694ea85..084ef95274cd78ceb51b1ea7a208a7a5e486199a 100644
(file)
--- a/
arch/x86/include/asm/msr.h
+++ b/
arch/x86/include/asm/msr.h
@@
-148,8
+148,8
@@
static inline unsigned long long native_read_pmc(int counter)
#define rdmsr(msr, val1, val2) \
do { \
u64 __val = native_read_msr((msr)); \
- (v
al1) = (u32)__val;
\
- (v
al2) = (u32)(__val >> 32);
\
+ (v
oid)((val1) = (u32)__val);
\
+ (v
oid)((val2) = (u32)(__val >> 32));
\
} while (0)
static inline void wrmsr(unsigned msr, unsigned low, unsigned high)