[rcu:rcu/next 33/42] include/linux/rcu_segcblist.h:69:2: error: unknown type name 'atomic_long_t'

From: kbuild test robot
Date: Sun Aug 11 2019 - 02:58:18 EST


tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head: 9b319ecdbf1658a6a1df7f92fc9a71aff7a0a86c
commit: 9f3ca094510499050dbd8cd58677f6fd70b5aa60 [33/42] rcu/nocb: Atomic ->len field in rcu_segcblist structure
config: x86_64-randconfig-a003-201932 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout 9f3ca094510499050dbd8cd58677f6fd70b5aa60
# save the attached .config to linux build tree
make ARCH=x86_64

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

All errors (new ones prefixed by >>):

In file included from <command-line>:0:0:
>> include/linux/rcu_segcblist.h:69:2: error: unknown type name 'atomic_long_t'
atomic_long_t len;
^~~~~~~~~~~~~
include/linux/rcu_segcblist.h:74:2: error: unknown type name 'u8'
u8 enabled;
^~
include/linux/rcu_segcblist.h:75:2: error: unknown type name 'u8'
u8 offloaded;
^~

vim +/atomic_long_t +69 include/linux/rcu_segcblist.h

63
64 struct rcu_segcblist {
65 struct rcu_head *head;
66 struct rcu_head **tails[RCU_CBLIST_NSEGS];
67 unsigned long gp_seq[RCU_CBLIST_NSEGS];
68 #ifdef CONFIG_RCU_NOCB_CPU
> 69 atomic_long_t len;
70 #else
71 long len;
72 #endif
73 long len_lazy;
74 u8 enabled;
75 u8 offloaded;
76 };
77

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip