Skip to content

Commit

Permalink
Merge tag 'asm-generic-fixes-5.8' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/kernel/git/arnd/asm-generic into master

Pull asm-generic bugfix from Arnd Bergmann:
 "A single bugfix for a regression introduced through a typo in the v5.8
  merge window, leading to incorrect data returned from inl() on some
  architectures"

* tag 'asm-generic-fixes-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
  io: Fix return type of _inb and _inl
  • Loading branch information
torvalds committed Jul 28, 2020
2 parents fb896c9 + 214ba35 commit 6ba1b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-generic/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static inline void writesq(volatile void __iomem *addr, const void *buffer,

#if !defined(inb) && !defined(_inb)
#define _inb _inb
static inline u16 _inb(unsigned long addr)
static inline u8 _inb(unsigned long addr)
{
u8 val;

Expand All @@ -482,7 +482,7 @@ static inline u16 _inw(unsigned long addr)

#if !defined(inl) && !defined(_inl)
#define _inl _inl
static inline u16 _inl(unsigned long addr)
static inline u32 _inl(unsigned long addr)
{
u32 val;

Expand Down

0 comments on commit 6ba1b00

Please sign in to comment.