WSL2-Linux-Kernel/arch
Luc Van Oostenryck bd72866b8d alpha: fix annotation of io{read,write}{16,32}be()
These accessors must be used to read/write a big-endian bus.  The value
returned or written is native-endian.

However, these accessors are defined using be{16,32}_to_cpu() or
cpu_to_be{16,32}() to make the endian conversion but these expect a
__be{16,32} when none is present.  Keeping them would need a force cast
that would solve nothing at all.

So, do the conversion using swab{16,32}, like done in asm-generic for
similar situations.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: http://lkml.kernel.org/r/20200622114232.80039-1-luc.vanoostenryck@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:57:59 -07:00
..
alpha alpha: fix annotation of io{read,write}{16,32}be() 2020-08-12 10:57:59 -07:00
arc uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
arm uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
arm64 uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
c6x Merge branch 'work.regset' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-08-07 09:29:25 -07:00
csky uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
h8300 uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
hexagon Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-08-09 13:33:54 -07:00
ia64 uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
m68k uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
microblaze uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
mips uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
nds32 uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
nios2 uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
openrisc uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
parisc uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
powerpc uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
riscv uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
s390 uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
sh uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
sparc uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
um Kbuild updates for v5.9 2020-08-09 14:10:26 -07:00
x86 uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
xtensa uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
.gitignore
Kconfig Kbuild updates for v5.9 2020-08-09 14:10:26 -07:00