[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202106150340.YOqUAS7A-lkp@intel.com>
Date: Tue, 15 Jun 2021 03:35:54 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
x86@...nel.org
Subject: [tip:tmp.tmp2 291/364] fs/ext2/xattr_trusted.c:15:9: error: implicit
declaration of function 'capable'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 6601f8679da18dd112f11e39486b163d4ad976e2 [291/364] sched/headers, fs: Simplify <linux/fs.h> header dependencies
config: x86_64-rhel-8.3 (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=6601f8679da18dd112f11e39486b163d4ad976e2
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 6601f8679da18dd112f11e39486b163d4ad976e2
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from fs/ext2/ext2.h:14,
from fs/ext2/xattr_trusted.c:9:
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);
| ^~~~~~~~~~~~~~~~~~
fs/ext2/xattr_trusted.c: In function 'ext2_xattr_trusted_list':
>> fs/ext2/xattr_trusted.c:15:9: error: implicit declaration of function 'capable' [-Werror=implicit-function-declaration]
15 | return capable(CAP_SYS_ADMIN);
| ^~~~~~~
>> fs/ext2/xattr_trusted.c:15:17: error: 'CAP_SYS_ADMIN' undeclared (first use in this function)
15 | return capable(CAP_SYS_ADMIN);
| ^~~~~~~~~~~~~
fs/ext2/xattr_trusted.c:15:17: note: each undeclared identifier is reported only once for each function it appears in
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 fs/ext2/ext2.h:19,
from fs/ext2/xattr_trusted.c:9:
fs/ext2/xattr_trusted.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);
| ^~~~~~~~~~~~~~~~~~
fs/ext2/xattr_trusted.c: In function 'ext2_xattr_trusted_list':
fs/ext2/xattr_trusted.c:16:1: error: control reaches end of non-void function [-Werror=return-type]
16 | }
| ^
cc1: some warnings being treated as errors
--
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:8,
from include/linux/idr.h:16,
from include/linux/kernfs.h:13,
from include/linux/kobject.h:20,
from include/linux/of.h:18,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from drivers/acpi/apei/erst-dbg.c:17:
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);
| ^~~~~~~~~~~~~~~~~~
drivers/acpi/apei/erst-dbg.c: In function 'erst_dbg_write':
>> drivers/acpi/apei/erst-dbg.c:157:7: error: implicit declaration of function 'capable' [-Werror=implicit-function-declaration]
157 | if (!capable(CAP_SYS_ADMIN))
| ^~~~~~~
>> drivers/acpi/apei/erst-dbg.c:157:15: error: 'CAP_SYS_ADMIN' undeclared (first use in this function)
157 | if (!capable(CAP_SYS_ADMIN))
| ^~~~~~~~~~~~~
drivers/acpi/apei/erst-dbg.c:157:15: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/uaccess.h:11,
from drivers/acpi/apei/erst-dbg.c:16:
drivers/acpi/apei/erst-dbg.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);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/workqueue.h:16,
from include/linux/interrupt.h:15,
from drivers/pci/pcie/aer_inject.c:19:
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);
| ^~~~~~~~~~~~~~~~~~
drivers/pci/pcie/aer_inject.c: In function 'aer_inject_write':
>> drivers/pci/pcie/aer_inject.c:492:7: error: implicit declaration of function 'capable' [-Werror=implicit-function-declaration]
492 | if (!capable(CAP_SYS_ADMIN))
| ^~~~~~~
>> drivers/pci/pcie/aer_inject.c:492:15: error: 'CAP_SYS_ADMIN' undeclared (first use in this function)
492 | if (!capable(CAP_SYS_ADMIN))
| ^~~~~~~~~~~~~
drivers/pci/pcie/aer_inject.c:492:15: note: each undeclared identifier is reported only once for each function it appears in
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 include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/pci/pcie/aer_inject.c:21:
drivers/pci/pcie/aer_inject.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);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/capable +15 fs/ext2/xattr_trusted.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 11
764a5c6b1fa430 Andreas Gruenbacher 2015-12-02 12 static bool
764a5c6b1fa430 Andreas Gruenbacher 2015-12-02 13 ext2_xattr_trusted_list(struct dentry *dentry)
^1da177e4c3f41 Linus Torvalds 2005-04-16 14 {
764a5c6b1fa430 Andreas Gruenbacher 2015-12-02 @15 return capable(CAP_SYS_ADMIN);
^1da177e4c3f41 Linus Torvalds 2005-04-16 16 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 17
:::::: The code at line 15 was first introduced by commit
:::::: 764a5c6b1fa4306dd7573c1d80914254909cd036 xattr handlers: Simplify list operation
:::::: TO: Andreas Gruenbacher <agruenba@...hat.com>
:::::: CC: Al Viro <viro@...iv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (41434 bytes)
Powered by blists - more mailing lists