include/linux/numa_memblks.h:50:12: error: conflicting types for 'phys_to_target_node'; have 'int(phys_addr_t)' {aka 'int(unsigned int)'}
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 985bf40edf4343dcb04c33f58b40b4a85c1776d4 commit: 58b48700d8e043187d8032e0855f7ee8c4af5eac [7142/8126] mm: make range-to-target_node lookup facility a part of numa_memblks config: riscv-randconfig-r022-20221228 (https://download.01.org/0day-ci/archive/20240902/[email protected]/config) compiler: riscv32-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240902/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from mm/numa.c:6:
>> include/linux/numa_memblks.h:50:12: error: conflicting types for 'phys_to_target_node'; have 'int(phys_addr_t)' {aka 'int(unsigned int)'}
50 | extern int phys_to_target_node(phys_addr_t start);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cpumask.h:17,
from arch/riscv/include/asm/processor.h:77,
from arch/riscv/include/asm/thread_info.h:37,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from include/linux/memblock.h:12,
from mm/numa.c:3:
include/linux/numa.h:47:5: note: previous declaration of 'phys_to_target_node' with type 'int(u64)' {aka 'int(long long unsigned int)'}
47 | int phys_to_target_node(u64 start);
| ^~~~~~~~~~~~~~~~~~~
--
In file included from mm/numa_memblks.c:8:
>> include/linux/numa_memblks.h:50:12: error: conflicting types for 'phys_to_target_node'; have 'int(phys_addr_t)' {aka 'int(unsigned int)'}
50 | extern int phys_to_target_node(phys_addr_t start);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cpumask.h:17,
from arch/riscv/include/asm/processor.h:77,
from arch/riscv/include/asm/thread_info.h:37,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from include/linux/memblock.h:12,
from mm/numa_memblks.c:6:
include/linux/numa.h:47:5: note: previous declaration of 'phys_to_target_node' with type 'int(u64)' {aka 'int(long long unsigned int)'}
47 | int phys_to_target_node(u64 start);
| ^~~~~~~~~~~~~~~~~~~
include/linux/numa_memblks.h:51:29: error: conflicting types for 'phys_to_target_node'; have 'int(phys_addr_t)' {aka 'int(unsigned int)'}
51 | #define phys_to_target_node phys_to_target_node
| ^~~~~~~~~~~~~~~~~~~
mm/numa_memblks.c:546:5: note: in expansion of macro 'phys_to_target_node'
546 | int phys_to_target_node(phys_addr_t start)
| ^~~~~~~~~~~~~~~~~~~
include/linux/numa.h:47:5: note: previous declaration of 'phys_to_target_node' with type 'int(u64)' {aka 'int(long long unsigned int)'}
47 | int phys_to_target_node(u64 start);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/printk.h:8,
from mm/numa_memblks.c:5:
include/linux/numa_memblks.h:51:29: error: conflicting types for 'phys_to_target_node'; have 'int(phys_addr_t)' {aka 'int(unsigned int)'}
51 | #define phys_to_target_node phys_to_target_node
| ^~~~~~~~~~~~~~~~~~~
include/linux/export.h:56:28: note: in definition of macro '__EXPORT_SYMBOL'
56 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:69:41: note: in expansion of macro '_EXPORT_SYMBOL'
69 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
| ^~~~~~~~~~~~~~
mm/numa_memblks.c:559:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
559 | EXPORT_SYMBOL_GPL(phys_to_target_node);
| ^~~~~~~~~~~~~~~~~
mm/numa_memblks.c:559:19: note: in expansion of macro 'phys_to_target_node'
559 | EXPORT_SYMBOL_GPL(phys_to_target_node);
| ^~~~~~~~~~~~~~~~~~~
include/linux/numa.h:47:5: note: previous declaration of 'phys_to_target_node' with type 'int(u64)' {aka 'int(long long unsigned int)'}
47 | int phys_to_target_node(u64 start);
| ^~~~~~~~~~~~~~~~~~~vim +50 include/linux/numa_memblks.h
48
49 #ifdef CONFIG_NUMA_KEEP_MEMINFO
> 50 extern int phys_to_target_node(phys_addr_t start);
51 #define phys_to_target_node phys_to_target_node
52 extern int memory_add_physaddr_to_nid(u64 start);
53 #define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
54 #endif /* CONFIG_NUMA_KEEP_MEMINFO */
55 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Mike Rapoport
maintainerQuoted 12 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 985bf40edf4343dcb04c33f58b40b4a85c1776d4 commit: 58b48700d8e043187d8032e0855f7ee8c4af5eac [7142/8126] mm: make range-to-target_node lookup facility a part of numa_memblks config: riscv-randconfig-r022-20221228 (https://download.01.org/0day-ci/archive/20240902/[email protected]/config) compiler: riscv32-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240902/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 6 lines
All errors (new ones prefixed by >>):
In file included from
mm/numa.c:6:Quoted 1 line
Quoted 1 line
include/linux/numa_memblks.h:50:12: error: conflicting types for 'phys_to_target_node'; have 'int(phys_addr_t)' {aka 'int(unsigned int)'}50 | extern int phys_to_target_node(phys_addr_t start); | ^~~~~~~~~~~~~~~~~~~
Andrew, can you please apply this fixup?
include/linux/numa_memblks.h +1 -1
@@ -47,7 +47,7 @@ static inline int numa_emu_cmdline(char *str)#endif /* CONFIG_NUMA_EMU */ #ifdef CONFIG_NUMA_KEEP_MEMINFO -extern int phys_to_target_node (phys_addr_t start); +extern int phys_to_target_node (u64 start);#define phys_to_target_node phys_to_target_nodeextern int memory_add_physaddr_to_nid (u64 start);#define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
mm/numa_memblks.c +1 -1
@@ -543,7 +543,7 @@ static int meminfo_to_nid(struct numa_meminfo *mi, u64 start)return NUMA_NO_NODE ; } -int phys_to_target_node (phys_addr_t start) +int phys_to_target_node (u64 start) {int nid =meminfo_to_nid (&numa_meminfo, start);
Signature · 2 lines
Sincerely yours, Mike.