[openeuler:OLK-6.6 2697/2697] arch/arm64/include/asm/cputype.h:163:9: error: "PHYTIUM_CPU_PART_FTC862" redefined

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 86390838db4d0ee205e00d4069a8fdb3e6f0d1d1 commit: 86390838db4d0ee205e00d4069a8fdb3e6f0d1d1 [2697/2697] !16528 [OLK-6.6] dma: phytium: Add PSWIOTLB mechanism to improve DMA performance config: arm64-randconfig-004-20250820 (https://download.01.org/0day-ci/archive/20250820/202508202358.M9ZVaaay-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250820/202508202358.M9ZVaaay-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/202508202358.M9ZVaaay-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/slab.h:15, from include/linux/resource_ext.h:11, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10:
arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/time.h:5, from include/linux/stat.h:19, from include/linux/module.h:13, from lib/test_bitops.c:9: arch/arm64/include/asm/cputype.h:163:9: error: "PHYTIUM_CPU_PART_FTC862" redefined [-Werror] 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/debug_locks.h:6, from include/linux/lockdep.h:23, from include/linux/mutex.h:17, from include/linux/notifier.h:14, from include/linux/clk.h:14, from lib/vsprintf.c:22: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ lib/vsprintf.c: In function 'va_format': lib/vsprintf.c:1682:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1682 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va); | ^~~ -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/debug_locks.h:6, from include/linux/lockdep.h:23, from include/linux/radix-tree.h:14, from include/linux/idr.h:15, from lib/test_ida.c:9: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ lib/test_ida.c:16:6: warning: no previous prototype for 'ida_dump' [-Wmissing-prototypes] 16 | void ida_dump(struct ida *ida) { } | ^~~~~~~~ -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/time.h:5, from include/linux/stat.h:19, from include/linux/module.h:13, from drivers/clk/clkdev.c:9: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clkdev.c: In function 'vclkdev_alloc': drivers/clk/clkdev.c:173:17: warning: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 173 | vscnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap); | ^~~~~~~~~~ -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/debug_locks.h:6, from include/linux/lockdep.h:23, from include/linux/mutex.h:17, from include/linux/notifier.h:14, from include/linux/clk.h:14, from drivers/clk/clk-cdce925.c:13: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-cdce925.c: In function 'cdce925_probe': drivers/clk/clk-cdce925.c:717:41: warning: '%d' directive writing between 1 and 11 bytes into a region of size 3 [-Wformat-overflow=] 717 | sprintf(child_name, "PLL%d", i+1); | ^~ drivers/clk/clk-cdce925.c:717:37: note: directive argument in the range [-2147483641, 2147483647] 717 | sprintf(child_name, "PLL%d", i+1); | ^~~~~~~ drivers/clk/clk-cdce925.c:717:17: note: 'sprintf' output between 5 and 15 bytes into a destination of size 6 717 | sprintf(child_name, "PLL%d", i+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/time.h:5, from include/linux/stat.h:19, from include/linux/module.h:13, from lib/oid_registry.c:8: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ lib/oid_registry.c:15:10: fatal error: oid_registry_data.c: No such file or directory 15 | #include "oid_registry_data.c" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/time.h:5, from include/linux/stat.h:19, from include/linux/module.h:13, from lib/crc64.c:36: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ lib/crc64.c:39:10: fatal error: crc64table.h: No such file or directory 39 | #include "crc64table.h" | ^~~~~~~~~~~~~~ compilation terminated. -- In file included from arch/arm64/include/asm/cache.h:49, from include/linux/cache.h:6, from include/linux/slab.h:15, from include/linux/resource_ext.h:11, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm64/include/asm/cpufeature.h:11, from arch/arm64/include/asm/assembler.h:21, from arch/arm64/include/asm/linkage.h:5, from include/linux/linkage.h:8, from arch/arm64/kernel/vdso/sigreturn.S:15: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm64/include/asm/cpufeature.h:11, from arch/arm64/include/asm/assembler.h:21, from arch/arm64/kernel/vdso/note.S:15: arch/arm64/include/asm/cputype.h:163:9: warning: "PHYTIUM_CPU_PART_FTC862" redefined 163 | #define PHYTIUM_CPU_PART_FTC862 0x862 | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/include/asm/cputype.h:110:9: note: this is the location of the previous definition 110 | #define PHYTIUM_CPU_PART_FTC862 0X862 | ^~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HALTPOLL_CPUIDLE Depends on [n]: CPU_IDLE [=n] && ARCH_CPUIDLE_HALTPOLL [=y] && ARCH_HAS_OPTIMIZED_POLL [=y] Selected by [y]: - ARM64 [=y] vim +/PHYTIUM_CPU_PART_FTC862 +163 arch/arm64/include/asm/cputype.h 730ffb45f56dda Easwar Hariharan 2024-03-20 162 f1e1cfa896d1e8 yuanxia 2025-06-13 @163 #define PHYTIUM_CPU_PART_FTC862 0x862 f1e1cfa896d1e8 yuanxia 2025-06-13 164 #define PHYTIUM_CPU_SOCID_PS24080 0x6 f1e1cfa896d1e8 yuanxia 2025-06-13 165 :::::: The code at line 163 was first introduced by commit :::::: f1e1cfa896d1e8d4b7e992a22131b2587bafac78 iommu: smmuv3: Not print information of SMMU 0x10 event :::::: TO: yuanxia <yuanxia2073@phytium.com.cn> :::::: CC: yuanxia <yuanxia2073@phytium.com.cn> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot