[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VciC+gqkCZ9voNKHU3hrtiOVzeWBu9_YEagpCGdTME2yg@mail.gmail.com>
Date: Sun, 26 Jul 2020 12:00:37 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Stafford Horne <shorne@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Arnd Bergmann <arnd@...db.de>,
Wei Xu <xuwei5@...ilicon.com>,
John Garry <john.garry@...wei.com>,
Linux-Arch <linux-arch@...r.kernel.org>
Subject: Re: [PATCH] io: Fix return type of _inb and _inl
On Sun, Jul 26, 2020 at 6:14 AM Stafford Horne <shorne@...il.com> wrote:
>
> The return type of functions _inb, _inw and _inl are all u16 which looks
> wrong. This patch makes them u8, u16 and u32 respectively.
>
> The original commit text for these does not indicate that these should
> be all forced to u16.
Is it in alight with all architectures? that support this interface natively?
(Return value is arch-dependent AFAIU, so it might actually return
16-bit for byte read, but I agree that this is weird for 32-bit value.
I think you have elaborate more in the commit message)
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists