[openeuler:OLK-6.6 2885/2885] drivers/pci/pci.c:177:17: error: expected ')'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: ea2f61405cf31bc46bf79f5297ca294ea5a7a9c7 commit: 1f46f3a128f21c190281c72cad99267bcc177e34 [2885/2885] PCI: PM: fix pcie mrrs restoring config: loongarch-randconfig-002-20250912 (https://download.01.org/0day-ci/archive/20250912/202509122354.VZ9a8UaA-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 21857ae337e0892a5522b6e7337899caa61de2a6) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250912/202509122354.VZ9a8UaA-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202509122354.VZ9a8UaA-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/pci/pci.c:11: In file included from include/linux/acpi.h:14: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/loongarch/include/asm/elf.h:13: In file included from arch/loongarch/include/asm/vdso.h:10: In file included from include/linux/mm.h:2181: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~
drivers/pci/pci.c:177:17: error: expected ')' 177 | suspend_state_t pm_suspend_target_state; | ^ include/linux/suspend.h:341:34: note: expanded from macro 'pm_suspend_target_state' 341 | #define pm_suspend_target_state (PM_SUSPEND_ON) | ^ include/linux/suspend.h:36:51: note: expanded from macro 'PM_SUSPEND_ON' 36 | #define PM_SUSPEND_ON ((__force suspend_state_t) 0) | ^ drivers/pci/pci.c:177:17: note: to match this '(' include/linux/suspend.h:341:34: note: expanded from macro 'pm_suspend_target_state' 341 | #define pm_suspend_target_state (PM_SUSPEND_ON) | ^ include/linux/suspend.h:36:24: note: expanded from macro 'PM_SUSPEND_ON' 36 | #define PM_SUSPEND_ON ((__force suspend_state_t) 0) | ^ drivers/pci/pci.c:177:17: error: redefinition of 'suspend_state_t' as different kind of symbol 177 | suspend_state_t pm_suspend_target_state; | ^ include/linux/suspend.h:341:34: note: expanded from macro 'pm_suspend_target_state' 341 | #define pm_suspend_target_state (PM_SUSPEND_ON) | ^ include/linux/suspend.h:36:34: note: expanded from macro 'PM_SUSPEND_ON' 36 | #define PM_SUSPEND_ON ((__force suspend_state_t) 0) | ^ include/linux/suspend.h:34:23: note: previous definition is here 34 | typedef int __bitwise suspend_state_t; | ^ 1 warning and 2 errors generated.
vim +177 drivers/pci/pci.c 175 176 #ifndef CONFIG_PM_SLEEP
177 suspend_state_t pm_suspend_target_state; 178 #define pm_suspend_target_state (PM_SUSPEND_ON) 179 #endif 180
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot