Re: [PATCH] ipc: Convert kern_ipc_perm.refcount to refcount_t

From: kbuild test robot
Date: Sat May 27 2017 - 16:20:40 EST


Hi Elena,

[auto build test ERROR on next-20170526]
[cannot apply to linus/master linux/master kees/for-next/pstore v4.9-rc8 v4.9-rc7 v4.9-rc6 v4.12-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Kees-Cook/ipc-Convert-kern_ipc_perm-refcount-to-refcount_t/20170528-040601
config: x86_64-randconfig-x019-201722 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

In file included from include/uapi/linux/sem.h:4:0,
from include/linux/sem.h:7,
from include/linux/sched.h:14,
from include/linux/uaccess.h:4,
from include/linux/crypto.h:26,
from arch/x86/kernel/asm-offsets.c:8:
>> include/linux/ipc.h:25:2: error: unknown type name 'refcount_t'
refcount_t refcount;
^~~~~~~~~~
make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2

vim +/refcount_t +25 include/linux/ipc.h

19 kgid_t cgid;
20 umode_t mode;
21 unsigned long seq;
22 void *security;
23
24 struct rcu_head rcu;
> 25 refcount_t refcount;
26 } ____cacheline_aligned_in_smp;
27
28 #endif /* _LINUX_IPC_H */

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

Attachment: .config.gz
Description: application/gzip