tree: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git doe head: d7706150d71eca96b6eb8865152bb9fd9830e9fc commit: c4cef7f8f8202238f89668e1c0d013a94c0069fd [3/4] PCI/DOE: Expose DOE features via sysfs config: riscv-randconfig-001-20250307 (https://download.01.org/0day-ci/archive/20250307/202503070631.aZNf56QY-lkp@xxxxxxxxx/config) compiler: riscv64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503070631.aZNf56QY-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/202503070631.aZNf56QY-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from drivers/pci/quirks.c:37: drivers/pci/pci.h: In function 'pci_doe_sysfs_init': >> drivers/pci/pci.h:464:70: error: 'return' with a value, in function returning void [-Wreturn-mismatch] 464 | static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } | ^ drivers/pci/pci.h:464:20: note: declared here 464 | static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } | ^~~~~~~~~~~~~~~~~~ -- In file included from drivers/pci/pcie/aspm.c:27: drivers/pci/pcie/../pci.h: In function 'pci_doe_sysfs_init': >> drivers/pci/pcie/../pci.h:464:70: error: 'return' with a value, in function returning void [-Wreturn-mismatch] 464 | static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } | ^ drivers/pci/pcie/../pci.h:464:20: note: declared here 464 | static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } | ^~~~~~~~~~~~~~~~~~ -- In file included from drivers/pci/msi/msi.c:14: drivers/pci/msi/../pci.h: In function 'pci_doe_sysfs_init': >> drivers/pci/msi/../pci.h:464:70: error: 'return' with a value, in function returning void [-Wreturn-mismatch] 464 | static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } | ^ drivers/pci/msi/../pci.h:464:20: note: declared here 464 | static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } | ^~~~~~~~~~~~~~~~~~ vim +/return +464 drivers/pci/pci.h 459 460 #if defined(CONFIG_PCI_DOE) && defined(CONFIG_SYSFS) 461 void pci_doe_sysfs_init(struct pci_dev *pci_dev); 462 void pci_doe_sysfs_teardown(struct pci_dev *pdev); 463 #else > 464 static inline void pci_doe_sysfs_init(struct pci_dev *pdev) { return 0; } 465 static inline void pci_doe_sysfs_teardown(struct pci_dev *pdev) { } 466 #endif 467 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki