[linux-nvme:nvme-5.20 6/14] drivers/nvme/host/pci.c:3540:41: error: 'nvme_dev_pm_ops' undeclared here (not in a function); did you mean 'nvme_dev_map'?
kernel test robot
lkp at intel.com
Thu Jul 21 08:35:24 PDT 2022
tree: git://git.infradead.org/nvme.git nvme-5.20
head: 750e34232a1152375907f28b6dd0262477a31f87
commit: 91d3073ff2f0b1a6a6d0629df7bcfacb226a204b [6/14] nvme-pci: use pm_sleep_ptr macro to declare nvme_dev_pm_ops
config: arm64-buildonly-randconfig-r001-20220721 (https://download.01.org/0day-ci/archive/20220721/202207212326.SB1C57On-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.20
git checkout 91d3073ff2f0b1a6a6d0629df7bcfacb226a204b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/nvme/host/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/cpumask.h:10,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/mutex.h:17,
from include/linux/kernfs.h:11,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/nvme/host/pci.c:7:
>> drivers/nvme/host/pci.c:3540:41: error: 'nvme_dev_pm_ops' undeclared here (not in a function); did you mean 'nvme_dev_map'?
3540 | .pm = pm_sleep_ptr(&nvme_dev_pm_ops),
| ^~~~~~~~~~~~~~~
include/linux/kernel.h:57:44: note: in definition of macro 'PTR_IF'
57 | #define PTR_IF(cond, ptr) ((cond) ? (ptr) : NULL)
| ^~~
drivers/nvme/host/pci.c:3540:27: note: in expansion of macro 'pm_sleep_ptr'
3540 | .pm = pm_sleep_ptr(&nvme_dev_pm_ops),
| ^~~~~~~~~~~~
vim +3540 drivers/nvme/host/pci.c
3532
3533 static struct pci_driver nvme_driver = {
3534 .name = "nvme",
3535 .id_table = nvme_id_table,
3536 .probe = nvme_probe,
3537 .remove = nvme_remove,
3538 .shutdown = nvme_shutdown,
3539 .driver = {
> 3540 .pm = pm_sleep_ptr(&nvme_dev_pm_ops),
3541 },
3542 .sriov_configure = pci_sriov_configure_simple,
3543 .err_handler = &nvme_err_handler,
3544 };
3545
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the Linux-nvme
mailing list