lkml.org 
[lkml]   [2012]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] i386 boot: fix inl() function

"u32 port" in inl() should be "u16 port".

Signed-off-by: He Chunhui <hchunhui@mail.ustc.edu.cn>
--- linux-3.3-rc1/arch/x86/boot/boot.h.orig 2012-01-31 23:49:15.858738690 +0800
+++ linux-3.3-rc1/arch/x86/boot/boot.h 2012-01-31 23:49:46.002072974 +0800
@@ -67,7 +67,7 @@ static inline void outl(u32 v, u16 port)
{
asm volatile("outl %0,%1" : : "a" (v), "dN" (port));
}
-static inline u32 inl(u32 port)
+static inline u32 inl(u16 port)
{
u32 v;
asm volatile("inl %1,%0" : "=a" (v) : "dN" (port));

\
 
 \ /
  Last update: 2012-01-31 17:59    [W:0.028 / U:4.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site