• Horia Geantă's avatar
    crypto: caam - fix implicit casts in endianness helpers · aae733a3
    Horia Geantă authored
    Fix the following sparse endianness warnings:
    
    drivers/crypto/caam/regs.h:95:1: sparse: incorrect type in return expression (different base types) @@    expected unsigned int @@    got restricted __le32unsigned int @@
    drivers/crypto/caam/regs.h:95:1:    expected unsigned int
    drivers/crypto/caam/regs.h:95:1:    got restricted __le32 [usertype] <noident>
    drivers/crypto/caam/regs.h:95:1: sparse: incorrect type in return expression (different base types) @@    expected unsigned int @@    got restricted __be32unsigned int @@
    drivers/crypto/caam/regs.h:95:1:    expected unsigned int
    drivers/crypto/caam/regs.h:95:1:    got restricted __be32 [usertype] <noident>
    
    drivers/crypto/caam/regs.h:92:1: sparse: cast to restricted __le32
    drivers/crypto/caam/regs.h:92:1: sparse: cast to restricted __be32
    
    Fixes: 261ea058 ("crypto: caam - handle core endianness != caam endianness")
    Reported-by: default avatarkbuild test robot <lkp@intel.com>
    Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    aae733a3
regs.h 28.7 KB