[asahilinux:nvme/dev 7/15] drivers/nvme/host/pci.c:1414: warning: expecting prototype for nvme_pci_suspend_queue(). Prototype was for nvme_suspend_queue() instead

From: kernel test robot
Date: Fri Jul 30 2021 - 15:32:20 EST


tree: https://github.com/AsahiLinux/linux nvme/dev
head: 29500f6a24f557631ee621c3c4af2df9fc44cce8
commit: 4f8da49326219a0864f9a1a1ccb7298747e14c15 [7/15] nvme: pci: rename pci specific functions
config: arm64-buildonly-randconfig-r001-20210730 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.3.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/AsahiLinux/linux/commit/4f8da49326219a0864f9a1a1ccb7298747e14c15
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux nvme/dev
git checkout 4f8da49326219a0864f9a1a1ccb7298747e14c15
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/nvme/host/

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

All warnings (new ones prefixed by >>):

>> drivers/nvme/host/pci.c:1414: warning: expecting prototype for nvme_pci_suspend_queue(). Prototype was for nvme_suspend_queue() instead


vim +1414 drivers/nvme/host/pci.c

4f8da49326219a0 drivers/nvme/host/pci.c Arnd Bergmann 2021-02-11 1407
4f8da49326219a0 drivers/nvme/host/pci.c Arnd Bergmann 2021-02-11 1408
4d115420707afca drivers/block/nvme-core.c Keith Busch 2013-12-10 1409 /**
4f8da49326219a0 drivers/nvme/host/pci.c Arnd Bergmann 2021-02-11 1410 * nvme_pci_suspend_queue - put queue into suspended state
40581d1a91a1527 drivers/nvme/host/pci.c Bart Van Assche 2018-10-08 1411 * @nvmeq: queue to suspend
4d115420707afca drivers/block/nvme-core.c Keith Busch 2013-12-10 1412 */
4d115420707afca drivers/block/nvme-core.c Keith Busch 2013-12-10 1413 static int nvme_suspend_queue(struct nvme_queue *nvmeq)
b60503ba432b16f drivers/block/nvme.c Matthew Wilcox 2011-01-20 @1414 {
4e224106673f1e8 drivers/nvme/host/pci.c Christoph Hellwig 2018-12-02 1415 if (!test_and_clear_bit(NVMEQ_ENABLED, &nvmeq->flags))
2b25d981790b830 drivers/block/nvme-core.c Keith Busch 2014-12-22 1416 return 1;
a09115b23e2002b drivers/block/nvme.c Matthew Wilcox 2012-08-07 1417
4e224106673f1e8 drivers/nvme/host/pci.c Christoph Hellwig 2018-12-02 1418 /* ensure that nvme_queue_rq() sees NVMEQ_ENABLED cleared */
d1f06f4ae0410f8 drivers/nvme/host/pci.c Jens Axboe 2018-05-17 1419 mb();
a09115b23e2002b drivers/block/nvme.c Matthew Wilcox 2012-08-07 1420
4e224106673f1e8 drivers/nvme/host/pci.c Christoph Hellwig 2018-12-02 1421 nvmeq->dev->online_queues--;
1c63dc66580d4bb drivers/nvme/host/pci.c Christoph Hellwig 2015-11-26 1422 if (!nvmeq->qid && nvmeq->dev->ctrl.admin_q)
c81545f991a6612 drivers/nvme/host/pci.c Sagi Grimberg 2017-07-02 1423 blk_mq_quiesce_queue(nvmeq->dev->ctrl.admin_q);
7c349dde26b75db drivers/nvme/host/pci.c Keith Busch 2019-03-08 1424 if (!test_and_clear_bit(NVMEQ_POLLED, &nvmeq->flags))
4f8da49326219a0 drivers/nvme/host/pci.c Arnd Bergmann 2021-02-11 1425 nvme_queue_free_irq(nvmeq);
4d115420707afca drivers/block/nvme-core.c Keith Busch 2013-12-10 1426 return 0;
b60503ba432b16f drivers/block/nvme.c Matthew Wilcox 2011-01-20 1427 }
b60503ba432b16f drivers/block/nvme.c Matthew Wilcox 2011-01-20 1428

:::::: The code at line 1414 was first introduced by commit
:::::: b60503ba432b16fc84442a84e29a7aad2c0c363d NVMe: New driver

:::::: TO: Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>
:::::: CC: Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip