Skip to contentSkip to conversation

Minor fix for rdmsrl

PATCH In review Liu, Jinsong 2 participants 3 messages Feb 27, 2013 – Feb 28, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Minor fix for rdmsrl

Minor fix for rdmsrl

xen/include/asm-x86/msr.h +1 -1
diff -r d3ee3732acf3 xen/include/asm-x86/msr.h
@@ -20,7 +20,7 @@
 			    : "=a" (a__), "=d" (b__) \
 			    : "c" (msr)); \
        val = a__ | ((u64)b__<<32); \
-} while(0);
+} while(0)
 
 #define wrmsr(msr,val1,val2) \
      __asm__ __volatile__("wrmsr" \

Minor fix for rdmsrl

xen/include/asm-x86/msr.h +1 -1
diff -r d3ee3732acf3 xen/include/asm-x86/msr.h
@@ -20,7 +20,7 @@
 			    : "=a" (a__), "=d" (b__) \
 			    : "c" (msr)); \
        val = a__ | ((u64)b__<<32); \
-} while(0);
+} while(0)
 
 #define wrmsr(msr,val1,val2) \
      __asm__ __volatile__("wrmsr" \

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Jinsong

Minor fix for rdmsrl

I applied this one, but could you clarify whether the stray semicolon caused any actual problem? I'm mainly asking to determine whether this needs backporting.

Jan

Quoted 11 lines
xen/include/asm-x86/msr.h +1 -1
@@ -20,7 +20,7 @@
 			    : "=a" (a__), "=d" (b__) \
 			    : "c" (msr)); \
        val = a__ | ((u64)b__<<32); \
-} while(0);
+} while(0)
 
 #define wrmsr(msr,val1,val2) \
      __asm__ __volatile__("wrmsr" \
#2 lore raw
Quoted 10 lines · Jan Beulich
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

On 27.02.13 at 17:46, "Liu, Jinsong" <[email protected]>
wrote: Minor fix for rdmsrl

I applied this one, but could you clarify whether the stray semicolon caused any actual problem? I'm mainly asking to determine whether this needs backporting.

Jan

No need backporting, just minor cleanup to drop unnecessary ';'

Thanks,
Jinsong

Quoted 11 lines
Quoted 11 lines
xen/include/asm-x86/msr.h +1 -1
 			    -20,7 +20,7 @@ : "=a" (a__), "=d" (b__) \
 			    : "c" (msr)); \
        val = a__ | ((u64)b__<<32); \
-} while(0);
+} while(0)
 
 #define wrmsr(msr,val1,val2) \
      __asm__ __volatile__("wrmsr" \