Hi Elena, [auto build test WARNING on next-20170220] [cannot apply to linus/master linux/master tip/perf/core v4.9-rc8 v4.9-rc7 v4.9-rc6] [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/Elena-Reshetova/kernel-convert-sighand_struct-count-from-atomic_t-to-refcount_t/20170220-183434 config: blackfin-TCM-BF537_defconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=blackfin All warnings (new ones prefixed by >>): In file included from include/asm-generic/bug.h:4:0, from arch/blackfin/include/asm/bug.h:71, from include/linux/bug.h:4, from include/linux/mmdebug.h:4, from include/linux/mm.h:8, from fs/proc/task_nommu.c:2: fs/proc/task_nommu.c: In function 'task_mem': include/asm-generic/atomic.h:177:37: error: 'refcount_t {aka struct refcount_struct}' has no member named 'counter' #define atomic_read(v) READ_ONCE((v)->counter) ^ include/linux/compiler.h:316:17: note: in definition of macro '__READ_ONCE' union { typeof(x) __val; char __c[1]; } __u; \ ^ include/asm-generic/atomic.h:177:24: note: in expansion of macro 'READ_ONCE' #define atomic_read(v) READ_ONCE((v)->counter) ^~~~~~~~~ >> fs/proc/task_nommu.c:64:26: note: in expansion of macro 'atomic_read' if (current->sighand && atomic_read(¤t->sighand->count) > 1) ^~~~~~~~~~~ include/asm-generic/atomic.h:177:37: error: 'refcount_t {aka struct refcount_struct}' has no member named 'counter' #define atomic_read(v) READ_ONCE((v)->counter) ^ include/linux/compiler.h:318:22: note: in definition of macro '__READ_ONCE' __read_once_size(&(x), __u.__c, sizeof(x)); \ ^ include/asm-generic/atomic.h:177:24: note: in expansion of macro 'READ_ONCE' #define atomic_read(v) READ_ONCE((v)->counter) ^~~~~~~~~ >> fs/proc/task_nommu.c:64:26: note: in expansion of macro 'atomic_read' if (current->sighand && atomic_read(¤t->sighand->count) > 1) ^~~~~~~~~~~ include/asm-generic/atomic.h:177:37: error: 'refcount_t {aka struct refcount_struct}' has no member named 'counter' #define atomic_read(v) READ_ONCE((v)->counter) ^ include/linux/compiler.h:318:42: note: in definition of macro '__READ_ONCE' __read_once_size(&(x), __u.__c, sizeof(x)); \ ^ include/asm-generic/atomic.h:177:24: note: in expansion of macro 'READ_ONCE' #define atomic_read(v) READ_ONCE((v)->counter) ^~~~~~~~~ >> fs/proc/task_nommu.c:64:26: note: in expansion of macro 'atomic_read' if (current->sighand && atomic_read(¤t->sighand->count) > 1) ^~~~~~~~~~~ include/asm-generic/atomic.h:177:37: error: 'refcount_t {aka struct refcount_struct}' has no member named 'counter' #define atomic_read(v) READ_ONCE((v)->counter) ^ include/linux/compiler.h:320:30: note: in definition of macro '__READ_ONCE' __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ ^ include/asm-generic/atomic.h:177:24: note: in expansion of macro 'READ_ONCE' #define atomic_read(v) READ_ONCE((v)->counter) ^~~~~~~~~ >> fs/proc/task_nommu.c:64:26: note: in expansion of macro 'atomic_read' if (current->sighand && atomic_read(¤t->sighand->count) > 1) ^~~~~~~~~~~ include/asm-generic/atomic.h:177:37: error: 'refcount_t {aka struct refcount_struct}' has no member named 'counter' #define atomic_read(v) READ_ONCE((v)->counter) ^ include/linux/compiler.h:320:50: note: in definition of macro '__READ_ONCE' __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ ^ include/asm-generic/atomic.h:177:24: note: in expansion of macro 'READ_ONCE' #define atomic_read(v) READ_ONCE((v)->counter) ^~~~~~~~~ >> fs/proc/task_nommu.c:64:26: note: in expansion of macro 'atomic_read' if (current->sighand && atomic_read(¤t->sighand->count) > 1) ^~~~~~~~~~~ vim +/atomic_read +64 fs/proc/task_nommu.c ^1da177e Linus Torvalds 2005-04-16 48 ^1da177e Linus Torvalds 2005-04-16 49 if (atomic_read(&mm->mm_count) > 1) ^1da177e Linus Torvalds 2005-04-16 50 sbytes += kobjsize(mm); ^1da177e Linus Torvalds 2005-04-16 51 else ^1da177e Linus Torvalds 2005-04-16 52 bytes += kobjsize(mm); ^1da177e Linus Torvalds 2005-04-16 53 498052bb Al Viro 2009-03-30 54 if (current->fs && current->fs->users > 1) ^1da177e Linus Torvalds 2005-04-16 55 sbytes += kobjsize(current->fs); ^1da177e Linus Torvalds 2005-04-16 56 else ^1da177e Linus Torvalds 2005-04-16 57 bytes += kobjsize(current->fs); ^1da177e Linus Torvalds 2005-04-16 58 ^1da177e Linus Torvalds 2005-04-16 59 if (current->files && atomic_read(¤t->files->count) > 1) ^1da177e Linus Torvalds 2005-04-16 60 sbytes += kobjsize(current->files); ^1da177e Linus Torvalds 2005-04-16 61 else ^1da177e Linus Torvalds 2005-04-16 62 bytes += kobjsize(current->files); ^1da177e Linus Torvalds 2005-04-16 63 ^1da177e Linus Torvalds 2005-04-16 @64 if (current->sighand && atomic_read(¤t->sighand->count) > 1) ^1da177e Linus Torvalds 2005-04-16 65 sbytes += kobjsize(current->sighand); ^1da177e Linus Torvalds 2005-04-16 66 else ^1da177e Linus Torvalds 2005-04-16 67 bytes += kobjsize(current->sighand); ^1da177e Linus Torvalds 2005-04-16 68 ^1da177e Linus Torvalds 2005-04-16 69 bytes += kobjsize(current); /* includes kernel stack */ ^1da177e Linus Torvalds 2005-04-16 70 df5f8314 Eric W. Biederman 2008-02-08 71 seq_printf(m, ^1da177e Linus Torvalds 2005-04-16 72 "Mem:\t%8lu bytes\n" :::::: The code at line 64 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip