From: tip-bot for He Chunhui <hchunhui@mail.ustc.edu.cn>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
tglx@linutronix.de, hpa@linux.intel.com,
hchunhui@mail.ustc.edu.cn
Subject: [tip:x86/boot] x86, boot: Fix port argument to inl() function
Date: Tue, 31 Jan 2012 12:16:22 -0800 [thread overview]
Message-ID: <tip-35f1790e6c6a7e4cae57b616cf36444d27fa6b28@git.kernel.org> (raw)
In-Reply-To: <32892299.2931391328028508117.JavaMail.coremail@mailweb>
Commit-ID: 35f1790e6c6a7e4cae57b616cf36444d27fa6b28
Gitweb: http://git.kernel.org/tip/35f1790e6c6a7e4cae57b616cf36444d27fa6b28
Author: He Chunhui <hchunhui@mail.ustc.edu.cn>
AuthorDate: Wed, 1 Feb 2012 00:48:28 +0800
Committer: H. Peter Anvin <hpa@linux.intel.com>
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 <hchunhui@mail.ustc.edu.cn>
Link: http://lkml.kernel.org/r/32892299.2931391328028508117.JavaMail.coremail@mailweb
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
arch/x86/boot/boot.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h
index c7093bd..18997e5 100644
--- a/arch/x86/boot/boot.h
+++ b/arch/x86/boot/boot.h
@@ -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));
prev parent reply other threads:[~2012-01-31 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-31 16:48 [PATCH] i386 boot: fix inl() function hchunhui
2012-01-31 19:13 ` [tip:x86/boot] x86, boot: Fix port argument to " tip-bot for hchunhui@mail.ustc.edu.cn
2012-01-31 20:16 ` tip-bot for He Chunhui [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-35f1790e6c6a7e4cae57b616cf36444d27fa6b28@git.kernel.org \
--to=hchunhui@mail.ustc.edu.cn \
--cc=hpa@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).