All of lore.kernel.org
 help / color / mirror / Atom feed
From: hchunhui@mail.ustc.edu.cn
To: hpa@zytor.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] i386 boot: fix inl() function
Date: Wed, 1 Feb 2012 00:48:28 +0800 (CST)	[thread overview]
Message-ID: <32892299.2931391328028508117.JavaMail.coremail@mailweb> (raw)


"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));

             reply	other threads:[~2012-01-31 16:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31 16:48 hchunhui [this message]
2012-01-31 19:13 ` [tip:x86/boot] x86, boot: Fix port argument to inl() function tip-bot for hchunhui@mail.ustc.edu.cn
2012-01-31 20:16 ` tip-bot for He Chunhui

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=32892299.2931391328028508117.JavaMail.coremail@mailweb \
    --to=hchunhui@mail.ustc.edu.cn \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.