i386 boot: fix inl() function
PATCH 1/1 i386 boot: fix inl() function
"u32 port" in inl() should be "u16 port".
Signed-off-by He Chunhui <[email protected]>
arch/x86/boot/boot.h renamed from arch/x86/boot/boot.h.orig +1 -1
@@ -67,7 +67,7 @@ static inline void outl(u32 v, u16 port) { asmvolatile ("outl %0,%1" : :"a" (v),"dN" (port)); } -static inline u32 inl (u32 port) +static inline u32 inl (u16 port) {u32 v; asmvolatile ("inl %1,%0" :"=a" (v) :"dN" (port));
[tip:x86/boot] x86, boot: Fix port argument to inl() function
Commit-ID: b19c3206aa872e0562d67ad46bf3b3a59be956a7 Gitweb: http://git.kernel.org/tip/b19c3206aa872e0562d67ad46bf3b3a59be956a7 Author: [email protected] <[email protected]> AuthorDate: Wed, 1 Feb 2012 00:48:28 +0800 Committer: H. Peter Anvin <[email protected]> CommitDate: Tue, 31 Jan 2012 10:08:17 -0800
x86, boot: Fix port argument to inl() function
"u32 port" in inl() should be "u16 port".
[ hpa: it's a bug, but it doesn't produce incorrect code, so no need
to put this into urgent or stable. ]
Signed-off-by He Chunhui <[email protected]>
Signed-off-by H. Peter Anvin <[email protected]>
--- arch/x86/boot/boot.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/boot/boot.h +1 -1
@@ -67,7 +67,7 @@ static inline void outl(u32 v, u16 port) { asmvolatile ("outl %0,%1" : :"a" (v),"dN" (port)); } -static inline u32 inl (u32 port) +static inline u32 inl (u16 port) {u32 v; asmvolatile ("inl %1,%0" :"=a" (v) :"dN" (port));
[tip:x86/boot] x86, boot: Fix port argument to inl() function
In reply to [email protected]Commit-ID: 35f1790e6c6a7e4cae57b616cf36444d27fa6b28 Gitweb: http://git.kernel.org/tip/35f1790e6c6a7e4cae57b616cf36444d27fa6b28 Author: He Chunhui <[email protected]> AuthorDate: Wed, 1 Feb 2012 00:48:28 +0800 Committer: H. Peter Anvin <[email protected]> CommitDate: Tue, 31 Jan 2012 12:05:54 -0800
x86, boot: Fix port argument to inl() function
"u32 port" in inl() should be "u16 port".
[ hpa: it's a bug, but it doesn't produce incorrect code, so no need
to put this into urgent or stable. ]
Signed-off-by He Chunhui <[email protected]>
Signed-off-by H. Peter Anvin <[email protected]>
--- arch/x86/boot/boot.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/boot/boot.h +1 -1
@@ -67,7 +67,7 @@ static inline void outl(u32 v, u16 port) { asmvolatile ("outl %0,%1" : :"a" (v),"dN" (port)); } -static inline u32 inl (u32 port) +static inline u32 inl (u16 port) {u32 v; asmvolatile ("inl %1,%0" :"=a" (v) :"dN" (port));