projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e697789
)
x86: fix asm-x86/byteorder.h for userspace export
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 1 Jan 2008 18:12:15 +0000
(19:12 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 1 Jan 2008 18:12:15 +0000
(19:12 +0100)
Since asm-x86/byteorder.h is exported to userspace, use __asm__ rather than
asm in its code.
Signed-Off-By: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/byteorder.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-x86/byteorder.h
b/include/asm-x86/byteorder.h
index 1f2d6d5bf20dd7659b38365982d781534f6e6a8c..fe2f2e5d51baf2bbe66e649c88d5de1713b56c42 100644
(file)
--- a/
include/asm-x86/byteorder.h
+++ b/
include/asm-x86/byteorder.h
@@
-30,13
+30,13
@@
static __inline__ __attribute_const__ __u64 ___arch__swab64(__u64 val)
} v;
v.u = val;
#ifdef CONFIG_X86_BSWAP
-
asm
("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
+
__asm__
("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
: "=r" (v.s.a), "=r" (v.s.b)
: "0" (v.s.a), "1" (v.s.b));
#else
v.s.a = ___arch__swab32(v.s.a);
v.s.b = ___arch__swab32(v.s.b);
-
asm
("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
+
__asm__
("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
#endif
return v.u;
}