tree: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git wip/2508-david-aspm-api head: a373462082599403e030c605ff260fd45429fe66 commit: 5ea26ba40d978b9f34faec2ca92c60e6d9db11c5 [1/2] PCI/ASPM: Add pci_host_set_default_pcie_link_state() config: x86_64-buildonly-randconfig-003-20250827 (https://download.01.org/0day-ci/archive/20250827/202508270921.b1XgvRZo-lkp@xxxxxxxxx/config) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250827/202508270921.b1XgvRZo-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/202508270921.b1XgvRZo-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from drivers/char/applicom.c:32: >> include/linux/pci.h:1870:56: error: two or more data types in declaration specifiers 1870 | u32 int state) { } | ^~~ drivers/char/applicom.c: In function 'ac_register_board': drivers/char/applicom.c:130:32: warning: variable 'byte_reset_it' set but not used [-Wunused-but-set-variable] 130 | volatile unsigned char byte_reset_it; | ^~~~~~~~~~~~~ drivers/char/applicom.c: In function 'ac_read': drivers/char/applicom.c:542:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 542 | int ret = 0; | ^~~ drivers/char/applicom.c: In function 'ac_ioctl': drivers/char/applicom.c:705:32: warning: variable 'byte_reset_it' set but not used [-Wunused-but-set-variable] 705 | volatile unsigned char byte_reset_it; | ^~~~~~~~~~~~~ -- In file included from drivers/char/hw_random/intel-rng.c:31: >> include/linux/pci.h:1870:56: error: two or more data types in declaration specifiers 1870 | u32 int state) { } | ^~~ vim +1870 include/linux/pci.h 1834 1835 #define PCIE_LINK_STATE_L0S (BIT(0) | BIT(1)) /* Upstr/dwnstr L0s */ 1836 #define PCIE_LINK_STATE_L1 BIT(2) /* L1 state */ 1837 #define PCIE_LINK_STATE_L1_1 BIT(3) /* ASPM L1.1 state */ 1838 #define PCIE_LINK_STATE_L1_2 BIT(4) /* ASPM L1.2 state */ 1839 #define PCIE_LINK_STATE_L1_1_PCIPM BIT(5) /* PCI-PM L1.1 state */ 1840 #define PCIE_LINK_STATE_L1_2_PCIPM BIT(6) /* PCI-PM L1.2 state */ 1841 #define PCIE_LINK_STATE_ASPM_ALL (PCIE_LINK_STATE_L0S |\ 1842 PCIE_LINK_STATE_L1 |\ 1843 PCIE_LINK_STATE_L1_1 |\ 1844 PCIE_LINK_STATE_L1_2 |\ 1845 PCIE_LINK_STATE_L1_1_PCIPM |\ 1846 PCIE_LINK_STATE_L1_2_PCIPM) 1847 #define PCIE_LINK_STATE_CLKPM BIT(7) 1848 #define PCIE_LINK_STATE_ALL (PCIE_LINK_STATE_ASPM_ALL |\ 1849 PCIE_LINK_STATE_CLKPM) 1850 1851 #ifdef CONFIG_PCIEASPM 1852 int pci_disable_link_state(struct pci_dev *pdev, int state); 1853 int pci_disable_link_state_locked(struct pci_dev *pdev, int state); 1854 int pci_enable_link_state(struct pci_dev *pdev, int state); 1855 int pci_enable_link_state_locked(struct pci_dev *pdev, int state); 1856 void pci_host_set_default_link_state(struct pci_host_bridge *host, u32 state); 1857 void pcie_no_aspm(void); 1858 bool pcie_aspm_support_enabled(void); 1859 bool pcie_aspm_enabled(struct pci_dev *pdev); 1860 #else 1861 static inline int pci_disable_link_state(struct pci_dev *pdev, int state) 1862 { return 0; } 1863 static inline int pci_disable_link_state_locked(struct pci_dev *pdev, int state) 1864 { return 0; } 1865 static inline int pci_enable_link_state(struct pci_dev *pdev, int state) 1866 { return 0; } 1867 static inline int pci_enable_link_state_locked(struct pci_dev *pdev, int state) 1868 { return 0; } 1869 static inline void pci_host_set_default_link_state(struct pci_host_bridge *host, > 1870 u32 int state) { } 1871 static inline void pcie_no_aspm(void) { } 1872 static inline bool pcie_aspm_support_enabled(void) { return false; } 1873 static inline bool pcie_aspm_enabled(struct pci_dev *pdev) { return false; } 1874 #endif 1875 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki