alpha: fix ioread64be()/iowrite64be() helpers
authorArnd Bergmann <arnd@arndb.de>
Mon, 29 Jul 2024 21:44:59 +0000 (23:44 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 1 Aug 2024 13:48:03 +0000 (15:48 +0200)
commitb07ce24df7fee54189a7bca583bcda81a5448198
tree10866284039b52f4167bdc9cd2c31b9ec053ad8c
parent8400291e289ee6b2bf9779ff1c83a291501f017b
alpha: fix ioread64be()/iowrite64be() helpers

Compile-testing the crypto/caam driver on alpha showed a pre-existing
problem on alpha with iowrite64be() missing:

ERROR: modpost: "iowrite64be" [drivers/crypto/caam/caam_jr.ko] undefined!

The prototypes were added a while ago when we started using asm-generic/io.h,
but the implementation was still missing. At some point the ioread64/iowrite64
helpers were added, but the big-endian versions are still missing, and
the generic version (using readq/writeq) is would not work here.

Change it to wrap ioread64()/iowrite64() instead.

Fixes: beba3771d9e0 ("crypto: caam: Make CRYPTO_DEV_FSL_CAAM dependent of COMPILE_TEST")
Fixes: e19d4ebc536d ("alpha: add full ioread64/iowrite64 implementation")
Fixes: 7e772dad9913 ("alpha: Use generic <asm-generic/io.h>")
Closes: https://lore.kernel.org/all/CAHk-=wgEyzSxTs467NDOVfBSzWvUS6ztcwhiy=M3xog==KBmTw@mail.gmail.com/
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/alpha/include/asm/io.h