1
0
Fork 0
alistair23-linux/arch/alpha
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
..
boot alpha: Replace strncmp with str_has_prefix 2020-06-12 17:43:17 -07:00
configs Char/Misc driver patches for 5.7-rc1 2020-04-03 13:22:40 -07:00
include alpha: fix annotation of io{read,write}{16,32}be() 2020-08-12 10:57:59 -07:00
kernel mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
lib alpha: turn csum_partial_copy_from_user() into csum_and_copy_from_user() 2020-05-29 16:11:49 -04:00
math-emu treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mm mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
oprofile smp: Remove smp_call_function() and on_each_cpu() return values 2019-06-23 14:26:26 +02:00
Kconfig dma-mapping: make support for dma ops optional 2020-07-19 09:29:23 +02:00
Kconfig.debug treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile kconfig: make arch/*/configs/defconfig the default of KBUILD_DEFCONFIG 2019-06-09 15:08:18 +09:00