drivers/usb/host/xhci-pci-renesas.c:655:25: error: 'usb_hcd_pci_shutdown' undeclared here (not in a function); did you mean 'usb_hcd_platform_shutdown'?
From: kernel test robot
Date: Tue Oct 01 2024 - 21:38:50 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e32cde8d2bd7d251a8f9b434143977ddf13dcec6
commit: 25f51b76f90f10f9bf2fbc05fc51cf685da7ccad xhci-pci: Make xhci-pci-renesas a proper modular driver
date: 8 weeks ago
config: x86_64-randconfig-001-20231120 (https://download.01.org/0day-ci/archive/20241002/202410020925.sc8EitKi-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410020925.sc8EitKi-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410020925.sc8EitKi-lkp@xxxxxxxxx/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/mm_types.h:5,
from include/linux/mmzone.h:22,
from include/linux/gfp.h:7,
from include/linux/slab.h:16,
from include/linux/resource_ext.h:11,
from include/linux/acpi.h:13,
from drivers/usb/host/xhci-pci-renesas.c:4:
include/linux/mm_types_task.h:19:45: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined, evaluates to 0 [-Wundef]
19 | #define USE_SPLIT_PTE_PTLOCKS (NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mm.h:2888:5: note: in expansion of macro 'USE_SPLIT_PTE_PTLOCKS'
2888 | #if USE_SPLIT_PTE_PTLOCKS
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/mm_types_task.h:19:45: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined, evaluates to 0 [-Wundef]
19 | #define USE_SPLIT_PTE_PTLOCKS (NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mm_types_task.h:20:34: note: in expansion of macro 'USE_SPLIT_PTE_PTLOCKS'
20 | #define USE_SPLIT_PMD_PTLOCKS (USE_SPLIT_PTE_PTLOCKS && \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/mm.h:3010:5: note: in expansion of macro 'USE_SPLIT_PMD_PTLOCKS'
3010 | #if USE_SPLIT_PMD_PTLOCKS
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/host/xhci-pci-renesas.c:655:25: error: 'usb_hcd_pci_shutdown' undeclared here (not in a function); did you mean 'usb_hcd_platform_shutdown'?
655 | .shutdown = usb_hcd_pci_shutdown,
| ^~~~~~~~~~~~~~~~~~~~
| usb_hcd_platform_shutdown
In file included from include/linux/cpumask.h:11,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/mmzone.h:8:
>> drivers/usb/host/xhci-pci-renesas.c:657:31: error: 'usb_hcd_pci_pm_ops' undeclared here (not in a function)
657 | .pm = pm_ptr(&usb_hcd_pci_pm_ops),
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
48 | #define PTR_IF(cond, ptr) ((cond) ? (ptr) : NULL)
| ^~~
drivers/usb/host/xhci-pci-renesas.c:657:23: note: in expansion of macro 'pm_ptr'
657 | .pm = pm_ptr(&usb_hcd_pci_pm_ops),
| ^~~~~~
>> drivers/usb/host/xhci-pci-renesas.c:660:1: warning: data definition has no type or storage class
660 | module_pci_driver(xhci_renesas_pci_driver);
| ^~~~~~~~~~~~~~~~~
>> drivers/usb/host/xhci-pci-renesas.c:660:1: error: type defaults to 'int' in declaration of 'module_pci_driver' [-Werror=implicit-int]
>> drivers/usb/host/xhci-pci-renesas.c:660:1: warning: parameter names (without types) in function declaration
>> drivers/usb/host/xhci-pci-renesas.c:648:26: warning: 'xhci_renesas_pci_driver' defined but not used [-Wunused-variable]
648 | static struct pci_driver xhci_renesas_pci_driver = {
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +655 drivers/usb/host/xhci-pci-renesas.c
647
> 648 static struct pci_driver xhci_renesas_pci_driver = {
649 .name = "xhci-pci-renesas",
650 .id_table = pci_ids,
651
652 .probe = xhci_pci_renesas_probe,
653 .remove = xhci_pci_remove,
654
> 655 .shutdown = usb_hcd_pci_shutdown,
656 .driver = {
> 657 .pm = pm_ptr(&usb_hcd_pci_pm_ops),
658 },
659 };
> 660 module_pci_driver(xhci_renesas_pci_driver);
661
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki