lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 11 Jun 2020 12:45:33 +0800
From:   kernel test robot <lkp@...el.com>
To:     SrujanaChalla <schalla@...vell.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Herbert Xu <herbert@...dor.apana.org.au>
Subject: drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse:
 sparse: incorrect type in assignment (different base types)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: 6482023b9d3350bf1b756ef36e1ea1a1c871879c crypto: marvell - enable OcteonTX cpt options for build
date:   3 months ago
config: s390-randconfig-s032-20200611 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        git checkout 6482023b9d3350bf1b756ef36e1ea1a1c871879c
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)

   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:306:22: sparse: sparse: cast to restricted __be32
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse:     expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:885:45: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:885:45: sparse:     expected unsigned short [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:885:45: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
   include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] @@
   include/asm-generic/io.h:236:22: sparse:     expected unsigned long long [usertype] val
   include/asm-generic/io.h:236:22: sparse:     got restricted __le64 [usertype]
--
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] opcode @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse:     expected unsigned short [assigned] [usertype] opcode
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:366:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] param1 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:366:29: sparse:     expected unsigned short [assigned] [usertype] param1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:366:29: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:367:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] param2 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:367:29: sparse:     expected unsigned short [assigned] [usertype] param2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:367:29: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:368:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] dlen @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:368:29: sparse:     expected unsigned short [assigned] [usertype] dlen
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:368:29: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:371:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [assigned] [usertype] u64 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:371:24: sparse:     expected unsigned long long [assigned] [usertype] u64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:371:24: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:209:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] @@     got restricted __be64 @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:209:33: sparse:     expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:209:33: sparse:     got restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len0 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse:     expected unsigned short [usertype] len0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len1 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse:     expected unsigned short [usertype] len1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len2 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse:     expected unsigned short [usertype] len2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len3 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse:     expected unsigned short [usertype] len3
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr0 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse:     expected unsigned long long [usertype] ptr0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr1 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse:     expected unsigned long long [usertype] ptr1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr2 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse:     expected unsigned long long [usertype] ptr2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr3 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse:     expected unsigned long long [usertype] ptr3
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len2 @@     got restricted __be16 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse:     expected unsigned short [usertype] len2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr2 @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse:     expected unsigned long long [usertype] ptr2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len1 @@     got restricted __be16 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse:     expected unsigned short [usertype] len1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr1 @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse:     expected unsigned long long [usertype] ptr1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len0 @@     got restricted __be16 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse:     expected unsigned short [usertype] len0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr0 @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse:     expected unsigned long long [usertype] ptr0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len0 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse:     expected unsigned short [usertype] len0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len1 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse:     expected unsigned short [usertype] len1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len2 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse:     expected unsigned short [usertype] len2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len3 @@     got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse:     expected unsigned short [usertype] len3
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse:     got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr0 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse:     expected unsigned long long [usertype] ptr0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr1 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse:     expected unsigned long long [usertype] ptr1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr2 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse:     expected unsigned long long [usertype] ptr2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr3 @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse:     expected unsigned long long [usertype] ptr3
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len2 @@     got restricted __be16 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse:     expected unsigned short [usertype] len2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr2 @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse:     expected unsigned long long [usertype] ptr2
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len1 @@     got restricted __be16 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse:     expected unsigned short [usertype] len1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr1 @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse:     expected unsigned long long [usertype] ptr1
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] len0 @@     got restricted __be16 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse:     expected unsigned short [usertype] len0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse:     got restricted __be16 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] ptr0 @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse:     expected unsigned long long [usertype] ptr0
   drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse:     got restricted __be64 [usertype]
--
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse:     expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse:     expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse:     expected unsigned int [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse:     got restricted __be32 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse:     expected unsigned int [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse:     got restricted __be32 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:705:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:705:24: sparse:     expected unsigned long long [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:705:24: sparse:     got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1012:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] flags @@     got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1012:31: sparse:     expected unsigned long long [usertype] flags
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1012:31: sparse:     got restricted __be64 [usertype]
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1032:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [usertype] flags @@     got restricted __be64 [usertype] @@
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1032:34: sparse:     expected unsigned long long [usertype] flags
   drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1032:34: sparse:     got restricted __be64 [usertype]

vim +881 drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c

d9110b0b01ff1cd SrujanaChalla 2020-03-13  858  
d9110b0b01ff1cd SrujanaChalla 2020-03-13  859  static int copy_ucode_to_dma_mem(struct device *dev,
d9110b0b01ff1cd SrujanaChalla 2020-03-13  860  				 struct otx_cpt_ucode *ucode,
d9110b0b01ff1cd SrujanaChalla 2020-03-13  861  				 const u8 *ucode_data)
d9110b0b01ff1cd SrujanaChalla 2020-03-13  862  {
d9110b0b01ff1cd SrujanaChalla 2020-03-13  863  	u32 i;
d9110b0b01ff1cd SrujanaChalla 2020-03-13  864  
d9110b0b01ff1cd SrujanaChalla 2020-03-13  865  	/*  Allocate DMAable space */
d9110b0b01ff1cd SrujanaChalla 2020-03-13  866  	ucode->va = dma_alloc_coherent(dev, ucode->size +
d9110b0b01ff1cd SrujanaChalla 2020-03-13  867  				       OTX_CPT_UCODE_ALIGNMENT,
d9110b0b01ff1cd SrujanaChalla 2020-03-13  868  				       &ucode->dma, GFP_KERNEL);
d9110b0b01ff1cd SrujanaChalla 2020-03-13  869  	if (!ucode->va) {
d9110b0b01ff1cd SrujanaChalla 2020-03-13  870  		dev_err(dev, "Unable to allocate space for microcode");
d9110b0b01ff1cd SrujanaChalla 2020-03-13  871  		return -ENOMEM;
d9110b0b01ff1cd SrujanaChalla 2020-03-13  872  	}
d9110b0b01ff1cd SrujanaChalla 2020-03-13  873  	ucode->align_va = PTR_ALIGN(ucode->va, OTX_CPT_UCODE_ALIGNMENT);
d9110b0b01ff1cd SrujanaChalla 2020-03-13  874  	ucode->align_dma = PTR_ALIGN(ucode->dma, OTX_CPT_UCODE_ALIGNMENT);
d9110b0b01ff1cd SrujanaChalla 2020-03-13  875  
d9110b0b01ff1cd SrujanaChalla 2020-03-13  876  	memcpy((void *) ucode->align_va, (void *) ucode_data +
d9110b0b01ff1cd SrujanaChalla 2020-03-13  877  	       sizeof(struct otx_cpt_ucode_hdr), ucode->size);
d9110b0b01ff1cd SrujanaChalla 2020-03-13  878  
d9110b0b01ff1cd SrujanaChalla 2020-03-13  879  	/* Byte swap 64-bit */
d9110b0b01ff1cd SrujanaChalla 2020-03-13  880  	for (i = 0; i < (ucode->size / 8); i++)
d9110b0b01ff1cd SrujanaChalla 2020-03-13 @881  		((u64 *)ucode->align_va)[i] =
d9110b0b01ff1cd SrujanaChalla 2020-03-13  882  				cpu_to_be64(((u64 *)ucode->align_va)[i]);
d9110b0b01ff1cd SrujanaChalla 2020-03-13  883  	/*  Ucode needs 16-bit swap */
d9110b0b01ff1cd SrujanaChalla 2020-03-13  884  	for (i = 0; i < (ucode->size / 2); i++)
d9110b0b01ff1cd SrujanaChalla 2020-03-13 @885  		((u16 *)ucode->align_va)[i] =
d9110b0b01ff1cd SrujanaChalla 2020-03-13  886  				cpu_to_be16(((u16 *)ucode->align_va)[i]);
d9110b0b01ff1cd SrujanaChalla 2020-03-13  887  	return 0;
d9110b0b01ff1cd SrujanaChalla 2020-03-13  888  }
d9110b0b01ff1cd SrujanaChalla 2020-03-13  889  

:::::: The code at line 881 was first introduced by commit
:::::: d9110b0b01ff1cd02751cd5c2c94e938a8906083 crypto: marvell - add support for OCTEON TX CPT engine

:::::: TO: SrujanaChalla <schalla@...vell.com>
:::::: CC: Herbert Xu <herbert@...dor.apana.org.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (31083 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ