tree:
https://android.googlesource.com/kernel/common android-4.19
head: 9e25a3c2aea5621981b002e8c9b45553dc44112a
commit: b01c73ea7129745ce9d94b8d3b35663b716cd95b [1/2] BACKPORT: FROMLIST: Update Inline
Encryption from v5 to v6 of patch series
config: x86_64-randconfig-s022-20210618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.19
git checkout b01c73ea7129745ce9d94b8d3b35663b716cd95b
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/scsi/ufs/ufshcd-crypto.c:250:26: sparse: sparse: symbol
'ufshcd_blk_crypto_mode_num_for_alg_dusize' was not declared. Should it be static?
drivers/scsi/ufs/ufshcd-crypto.c:250:26: warning: no previous prototype for
'ufshcd_blk_crypto_mode_num_for_alg_dusize' [-Wmissing-prototypes]
250 | enum blk_crypto_mode_num ufshcd_blk_crypto_mode_num_for_alg_dusize(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/ufs/ufshcd-crypto.c:272: warning: Function parameter or member
'ksm_ops' not described in 'ufshcd_hba_init_crypto_spec'
vim +/ufshcd_blk_crypto_mode_num_for_alg_dusize +250 drivers/scsi/ufs/ufshcd-crypto.c
249
250 enum blk_crypto_mode_num
ufshcd_blk_crypto_mode_num_for_alg_dusize(
251 enum ufs_crypto_alg
ufs_crypto_alg,
252 enum ufs_crypto_key_size key_size)
253 {
254 /*
255 * This is currently the only mode that UFS and blk-crypto both support.
256 */
257 if (ufs_crypto_alg == UFS_CRYPTO_ALG_AES_XTS &&
258 key_size == UFS_CRYPTO_KEY_SIZE_256)
259 return BLK_ENCRYPTION_MODE_AES_256_XTS;
260
261 return BLK_ENCRYPTION_MODE_INVALID;
262 }
263
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org