All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 4/4] crypto: marvell: enable OcteonTX cpt options for build
Date: Thu, 05 Mar 2020 13:00:41 +0800	[thread overview]
Message-ID: <202003051203.lacJPc0F%lkp@intel.com> (raw)
In-Reply-To: <1583324716-23633-5-git-send-email-schalla@marvell.com>

[-- Attachment #1: Type: text/plain, Size: 23252 bytes --]

Hi Srujana,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on cryptodev/master]
[also build test WARNING on crypto/master linus/master v5.6-rc4 next-20200304]
[cannot apply to sparc-next/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Srujana-Challa/Add-Support-for-Marvell-OcteonTX-Cryptographic/20200305-041058
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-174-g094d5a94-dirty
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.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:306:22: sparse: sparse: cast to restricted __be32
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:306:22: sparse: sparse: cast to restricted __be32
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:306:22: sparse: sparse: cast to restricted __be32
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:306:22: sparse: sparse: cast to restricted __be32
>> 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)
>> 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)
>> 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
   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
   drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:1465:75: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse: sparse: incorrect type in assignment (different base types)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
   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)
   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)
   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)
   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)
   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)
   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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
>> 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)
   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)
   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)
   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)
   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)
   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)
   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:114:6: sparse: sparse: symbol 'otx_cpt_aead_callback' was not declared. Should it be static?
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:174:6: sparse: sparse: symbol 'otx_cpt_skcipher_callback' was not declared. Should it be static?
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1405:17: sparse: sparse: symbol 'otx_cpt_aeads' was not declared. Should it be static?
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: sparse: incorrect type in assignment (different base types)
>> 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)
>> 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)
>> 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)
>> 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)
   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)
>> 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)
   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]

Please review and possibly fold the followup patch.

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

614cde32c669af SrujanaChalla 2020-03-04  281  
614cde32c669af SrujanaChalla 2020-03-04  282  static int process_tar_file(struct device *dev,
614cde32c669af SrujanaChalla 2020-03-04  283  			    struct tar_arch_info_t *tar_arch, char *filename,
614cde32c669af SrujanaChalla 2020-03-04  284  			    const u8 *data, u32 size)
614cde32c669af SrujanaChalla 2020-03-04  285  {
614cde32c669af SrujanaChalla 2020-03-04  286  	struct tar_ucode_info_t *tar_info;
614cde32c669af SrujanaChalla 2020-03-04  287  	struct otx_cpt_ucode_hdr *ucode_hdr;
614cde32c669af SrujanaChalla 2020-03-04  288  	int ucode_type, ucode_size;
614cde32c669af SrujanaChalla 2020-03-04  289  
614cde32c669af SrujanaChalla 2020-03-04  290  	/*
614cde32c669af SrujanaChalla 2020-03-04  291  	 * If size is less than microcode header size then don't report
614cde32c669af SrujanaChalla 2020-03-04  292  	 * an error because it might not be microcode file, just process
614cde32c669af SrujanaChalla 2020-03-04  293  	 * next file from archive
614cde32c669af SrujanaChalla 2020-03-04  294  	 */
614cde32c669af SrujanaChalla 2020-03-04  295  	if (size < sizeof(struct otx_cpt_ucode_hdr))
614cde32c669af SrujanaChalla 2020-03-04  296  		return 0;
614cde32c669af SrujanaChalla 2020-03-04  297  
614cde32c669af SrujanaChalla 2020-03-04  298  	ucode_hdr = (struct otx_cpt_ucode_hdr *) data;
614cde32c669af SrujanaChalla 2020-03-04  299  	/*
614cde32c669af SrujanaChalla 2020-03-04  300  	 * If microcode version can't be found don't report an error
614cde32c669af SrujanaChalla 2020-03-04  301  	 * because it might not be microcode file, just process next file
614cde32c669af SrujanaChalla 2020-03-04  302  	 */
614cde32c669af SrujanaChalla 2020-03-04  303  	if (get_ucode_type(ucode_hdr, &ucode_type))
614cde32c669af SrujanaChalla 2020-03-04  304  		return 0;
614cde32c669af SrujanaChalla 2020-03-04  305  
614cde32c669af SrujanaChalla 2020-03-04 @306  	ucode_size = ntohl(ucode_hdr->code_length) * 2;
614cde32c669af SrujanaChalla 2020-03-04  307  	if (!ucode_size || (size < round_up(ucode_size, 16) +
614cde32c669af SrujanaChalla 2020-03-04  308  	    sizeof(struct otx_cpt_ucode_hdr) + OTX_CPT_UCODE_SIGN_LEN)) {
614cde32c669af SrujanaChalla 2020-03-04  309  		dev_err(dev, "Ucode %s invalid size", filename);
614cde32c669af SrujanaChalla 2020-03-04  310  		return -EINVAL;
614cde32c669af SrujanaChalla 2020-03-04  311  	}
614cde32c669af SrujanaChalla 2020-03-04  312  
614cde32c669af SrujanaChalla 2020-03-04  313  	tar_info = kzalloc(sizeof(struct tar_ucode_info_t), GFP_KERNEL);
614cde32c669af SrujanaChalla 2020-03-04  314  	if (!tar_info)
614cde32c669af SrujanaChalla 2020-03-04  315  		return -ENOMEM;
614cde32c669af SrujanaChalla 2020-03-04  316  
614cde32c669af SrujanaChalla 2020-03-04  317  	tar_info->ucode_ptr = data;
614cde32c669af SrujanaChalla 2020-03-04  318  	set_ucode_filename(&tar_info->ucode, filename);
614cde32c669af SrujanaChalla 2020-03-04  319  	memcpy(tar_info->ucode.ver_str, ucode_hdr->ver_str,
614cde32c669af SrujanaChalla 2020-03-04  320  	       OTX_CPT_UCODE_VER_STR_SZ);
614cde32c669af SrujanaChalla 2020-03-04  321  	tar_info->ucode.ver_num = ucode_hdr->ver_num;
614cde32c669af SrujanaChalla 2020-03-04  322  	tar_info->ucode.type = ucode_type;
614cde32c669af SrujanaChalla 2020-03-04  323  	tar_info->ucode.size = ucode_size;
614cde32c669af SrujanaChalla 2020-03-04  324  	list_add_tail(&tar_info->list, &tar_arch->ucodes);
614cde32c669af SrujanaChalla 2020-03-04  325  
614cde32c669af SrujanaChalla 2020-03-04  326  	return 0;
614cde32c669af SrujanaChalla 2020-03-04  327  }
614cde32c669af SrujanaChalla 2020-03-04  328  

:::::: The code at line 306 was first introduced by commit
:::::: 614cde32c669aff28aefeef2e1f7a982d4e640bc drivers: crypto: add support for OCTEON TX CPT engine

:::::: TO: SrujanaChalla <schalla@marvell.com>
:::::: CC: 0day robot <lkp@intel.com>

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

  reply	other threads:[~2020-03-05  5:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-04 12:25 [PATCH 0/4] Add Support for Marvell OcteonTX Cryptographic Srujana Challa
2020-03-04 12:25 ` [PATCH 1/4] drivers: crypto: create common Kconfig and Makefile for Marvell Srujana Challa
2020-03-04 12:25 ` [PATCH 2/4] drivers: crypto: add support for OCTEON TX CPT engine Srujana Challa
2020-03-04 12:25 ` [PATCH 3/4] drivers: crypto: add the Virtual Function driver for CPT Srujana Challa
2020-03-04 12:25 ` [PATCH 4/4] crypto: marvell: enable OcteonTX cpt options for build Srujana Challa
2020-03-05  5:00   ` kbuild test robot [this message]
2020-03-05  5:00   ` [RFC PATCH] crypto: marvell: otx_cpt_aead_callback() can be static kbuild test robot
2020-03-10 12:08   ` [PATCH 4/4] crypto: marvell: enable OcteonTX cpt options for build kbuild test robot
2020-03-12 11:43   ` Herbert Xu
2020-03-13  6:12     ` [EXT] " Srujana Challa
2020-03-12 11:44 ` [PATCH 0/4] Add Support for Marvell OcteonTX Cryptographic Herbert Xu
2020-03-16 17:18   ` Srujana Challa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202003051203.lacJPc0F%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.