]> Pileus Git - ~andy/linux/commitdiff
x86: remove volatile keyword from clflush.
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 30 Jan 2008 12:31:08 +0000 (13:31 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:31:08 +0000 (13:31 +0100)
the p parameter is an explicit memory reference, and is
enough to prevent gcc to being nasty here. The volatile
seems completely not needed.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/system_32.h

index f5b3f77f5310e71e3dfcf81b648d30e4cd2c1265..28978b17b07a768fc3aa0f2016be75aa5fde3641 100644 (file)
@@ -161,7 +161,7 @@ static inline void native_wbinvd(void)
        asm volatile("wbinvd": : :"memory");
 }
 
-static inline void clflush(volatile void *__p)
+static inline void clflush(void *__p)
 {
        asm volatile("clflush %0" : "+m" (*(char __force *)__p));
 }