Re: [PATCH] alpha: fix ioread64be()/iowrite64be() helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 31, 2024, at 17:47, Guenter Roeck wrote:
> On Tue, Jul 30, 2024 at 05:27:25PM +0200, Arnd Bergmann wrote:
>> From: Arnd Bergmann <arnd@xxxxxxxx>
>> 
>> 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@xxxxxxxxxxxxxx/
>> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
>
> Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Thanks!

>> +#define ioread64be(p) swab64(ioread64(p))
>>  #define iowrite16be(v,p) iowrite16(swab16(v), (p))
>>  #define iowrite32be(v,p) iowrite32(swab32(v), (p))
>> +#define iowrite64be(v,p) iowrite64(swab64(v), (p))
>> +
>>  

Fixed

      Arnd




[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux