tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master head: 198429631a85622da1d08d360ef02cfb84c95919 commit: 00ae05db583a7b5d5575bb601158139e25af3b02 [145/162] crypto: hisilicon - fix kbuild warnings config: arm64-allyesconfig (attached as .config) compiler: aarch64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 00ae05db583a7b5d5575bb601158139e25af3b02 # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:332:0, from include/linux/kernel.h:15, from include/asm-generic/bug.h:18, from arch/arm64/include/asm/bug.h:26, from arch/arm64/include/asm/memory.h:16, from arch/arm64/include/asm/page.h:31, from drivers/crypto/hisilicon/qm.c:3: drivers/crypto/hisilicon/qm.c: In function 'qm_mb': >> drivers/crypto/hisilicon/qm.c:350:26: warning: format '%p' expects argument of type 'void *', but argument 6 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%pad\n", queue, ^ include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call' func(&id, ##__VA_ARGS__); \ ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call' _dynamic_func_call(fmt,__dynamic_dev_dbg, \ ^~~~~~~~~~~~~~~~~~ include/linux/device.h:1503:2: note: in expansion of macro 'dynamic_dev_dbg' dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~ include/linux/device.h:1503:23: note: in expansion of macro 'dev_fmt' dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~ drivers/crypto/hisilicon/qm.c:350:2: note: in expansion of macro 'dev_dbg' dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%pad\n", queue, ^~~~~~~ vim +350 drivers/crypto/hisilicon/qm.c 343 344 static int qm_mb(struct hisi_qm *qm, u8 cmd, dma_addr_t dma_addr, u16 queue, 345 bool op) 346 { 347 struct qm_mailbox mailbox; 348 int ret = 0; 349 > 350 dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%pad\n", queue, 351 cmd, dma_addr); 352 353 mailbox.w0 = cmd | 354 (op ? 0x1 << QM_MB_OP_SHIFT : 0) | 355 (0x1 << QM_MB_BUSY_SHIFT); 356 mailbox.queue_num = queue; 357 mailbox.base_l = lower_32_bits(dma_addr); 358 mailbox.base_h = upper_32_bits(dma_addr); 359 mailbox.rsvd = 0; 360 361 mutex_lock(&qm->mailbox_lock); 362 363 if (unlikely(qm_wait_mb_ready(qm))) { 364 ret = -EBUSY; 365 dev_err(&qm->pdev->dev, "QM mailbox is busy to start!\n"); 366 goto busy_unlock; 367 } 368 369 qm_mb_write(qm, &mailbox); 370 371 if (unlikely(qm_wait_mb_ready(qm))) { 372 ret = -EBUSY; 373 dev_err(&qm->pdev->dev, "QM mailbox operation timeout!\n"); 374 goto busy_unlock; 375 } 376 377 busy_unlock: 378 mutex_unlock(&qm->mailbox_lock); 379 380 return ret; 381 } 382 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip