tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay
OCS HCU
config: hexagon-randconfig-r041-20210811 (attached as .config)
compiler: clang version 12.0.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd7...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/crypto/keembay/keembay-ocs-hcu-core.c:226:46: warning:
shift count >= width of type [-Wshift-count-overflow]
if (addr &
KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/crypto/keembay/ocs-hcu.h:30:36: note: expanded from macro
'OCS_HCU_DMA_MAX_ADDR_MASK'
#define OCS_HCU_DMA_MAX_ADDR_MASK (BIT(32) - 1)
^~~~~~~
include/linux/bits.h:8:26: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^ ~~~~
1 warning generated.
--
> drivers/crypto/keembay/ocs-hcu.c:389:22: warning: shift count
>= width of type [-Wshift-count-overflow]
if (!head || head >
OCS_HCU_DMA_MAX_ADDR_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/crypto/keembay/ocs-hcu.h:30:36: note: expanded from macro
'OCS_HCU_DMA_MAX_ADDR_MASK'
#define OCS_HCU_DMA_MAX_ADDR_MASK (BIT(32) - 1)
^~~~~~~
include/linux/bits.h:8:26: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^ ~~~~
drivers/crypto/keembay/ocs-hcu.c:118:19: warning: unused function
'ocs_hcu_digest_size' [-Wunused-function]
static inline u32 ocs_hcu_digest_size(u32 algo)
^
2 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS
&& !PPC && !ARM && !S390 && !MICROBLAZE && !ARC
&& !X86
vim +226 drivers/crypto/keembay/keembay-ocs-hcu-core.c
222
223 static int kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
224 dma_addr_t addr, size_t len)
225 {
226 if (addr & KMB_OCS_HCU_ALIGN_MASK || addr >
OCS_HCU_DMA_MAX_ADDR_MASK)
227 return -EINVAL;
228
229 if (!len)
230 return 0;
231
232 rctx->dma_list_tail->src_adr = (u32)addr;
233 rctx->dma_list_tail->src_len = (u32)len;
234 rctx->dma_list_tail->ll_flags = 0;
235 rctx->dma_list_tail->nxt_desc = rctx->ll_dma_addr +
236 (virt_to_phys(rctx->dma_list_tail) -
237 virt_to_phys(rctx->dma_list_head)) +
238 sizeof(*rctx->dma_list_tail);
239
240 rctx->dma_list_tail++;
241
242 return 0;
243 }
244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org