Hi Valentine,[..]
kernel test robot noticed the following build warnings:
All warnings (new ones prefixed by >>):I'm not sure if I should do anything about it: arc doesn't HAVE_* anything PCI-related, and pci-sysfs doesn't seem to be written with this case in mind. Guarding pci_llseek_resource() with an #ifdef HAVE_AT_LEAST_SOMETHING is trivial, but it feels more like a patch to silence a bot than a proper fix.
drivers/pci/pci-sysfs.c:1268:12: warning: no previous prototype for 'pci_create_resource_files' [-Wmissing-prototypes]
1268 | int __weak pci_create_resource_files(struct pci_dev *dev) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/pci-sysfs.c:1269:13: warning: no previous prototype for 'pci_remove_resource_files' [-Wmissing-prototypes]
1269 | void __weak pci_remove_resource_files(struct pci_dev *dev) { return; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~
838 | static loff_t pci_llseek_resource(struct file *filep,drivers/pci/pci-sysfs.c:838:15: warning: 'pci_llseek_resource' defined but not used [-Wunused-function]
| ^~~~~~~~~~~~~~~~~~~