[tip:tmp.tmp2 267/364] include/linux/numa.h:35:46: error: unknown type name 'u64'

From: kernel test robot
Date: Sun Jun 13 2021 - 18:27:46 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 7e059d796dca598292ff44d2359c8e16dbc9c96f [267/364] sched/headers, numa: Factor out <linux/numa_types.h> from <linux/numa.h>
config: i386-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=7e059d796dca598292ff44d2359c8e16dbc9c96f
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout 7e059d796dca598292ff44d2359c8e16dbc9c96f
# save the attached .config to linux build tree
make W=1 ARCH=i386

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from drivers/md/dm-stats.c:3:
>> include/linux/numa.h:35:46: error: unknown type name 'u64'
35 | static inline int memory_add_physaddr_to_nid(u64 start)
| ^~~
include/linux/numa.h:39:39: error: unknown type name 'u64'
39 | static inline int phys_to_target_node(u64 start)
| ^~~
In file included from include/linux/workqueue.h:16,
from include/linux/srcu_types.h:20,
from include/linux/srcu.h:19,
from include/linux/notifier.h:16,
from arch/x86/include/asm/uprobes.h:13,
from include/linux/uprobes.h:49,
from include/linux/mm_types.h:14,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:7,
from include/linux/slab.h:15,
from drivers/md/dm-stats.c:4:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from arch/x86/include/asm/fpu/xstate.h:5,
from arch/x86/include/asm/pgtable.h:26,
from include/linux/pgtable.h:6,
from include/linux/mm.h:35,
from drivers/md/dm-stats.c:10:
drivers/md/dm-stats.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~


vim +/u64 +35 include/linux/numa.h

a927bd6ba952d1 Dan Williams 2020-11-21 13
a927bd6ba952d1 Dan Williams 2020-11-21 14 #ifndef memory_add_physaddr_to_nid
a927bd6ba952d1 Dan Williams 2020-11-21 15 static inline int memory_add_physaddr_to_nid(u64 start)
a927bd6ba952d1 Dan Williams 2020-11-21 16 {
a927bd6ba952d1 Dan Williams 2020-11-21 17 pr_info_once("Unknown online node for memory at 0x%llx, assuming node 0\n",
a927bd6ba952d1 Dan Williams 2020-11-21 18 start);
a927bd6ba952d1 Dan Williams 2020-11-21 19 return 0;
a927bd6ba952d1 Dan Williams 2020-11-21 20 }
a927bd6ba952d1 Dan Williams 2020-11-21 21 #endif
a927bd6ba952d1 Dan Williams 2020-11-21 22 #ifndef phys_to_target_node
a927bd6ba952d1 Dan Williams 2020-11-21 23 static inline int phys_to_target_node(u64 start)
a927bd6ba952d1 Dan Williams 2020-11-21 24 {
a927bd6ba952d1 Dan Williams 2020-11-21 25 pr_info_once("Unknown target node for memory at 0x%llx, assuming node 0\n",
a927bd6ba952d1 Dan Williams 2020-11-21 26 start);
a927bd6ba952d1 Dan Williams 2020-11-21 27 return 0;
a927bd6ba952d1 Dan Williams 2020-11-21 28 }
a927bd6ba952d1 Dan Williams 2020-11-21 29 #endif
a927bd6ba952d1 Dan Williams 2020-11-21 30 #else /* !CONFIG_NUMA */
b2ca916ce392a9 Dan Williams 2020-02-16 31 static inline int numa_map_to_online_node(int node)
b2ca916ce392a9 Dan Williams 2020-02-16 32 {
b2ca916ce392a9 Dan Williams 2020-02-16 33 return NUMA_NO_NODE;
b2ca916ce392a9 Dan Williams 2020-02-16 34 }
a927bd6ba952d1 Dan Williams 2020-11-21 @35 static inline int memory_add_physaddr_to_nid(u64 start)
a927bd6ba952d1 Dan Williams 2020-11-21 36 {
a927bd6ba952d1 Dan Williams 2020-11-21 37 return 0;
a927bd6ba952d1 Dan Williams 2020-11-21 38 }
a927bd6ba952d1 Dan Williams 2020-11-21 39 static inline int phys_to_target_node(u64 start)
a927bd6ba952d1 Dan Williams 2020-11-21 40 {
a927bd6ba952d1 Dan Williams 2020-11-21 41 return 0;
a927bd6ba952d1 Dan Williams 2020-11-21 42 }
b2ca916ce392a9 Dan Williams 2020-02-16 43 #endif
b2ca916ce392a9 Dan Williams 2020-02-16 44

:::::: The code at line 35 was first introduced by commit
:::::: a927bd6ba952d13c52b8b385030943032f659a3e mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports

:::::: TO: Dan Williams <dan.j.williams@xxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip