[tglx-devel:x86/fpu 48/53] arch/x86/kernel/fpu/regset.c:46:33: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu
head: 70e967061547de5e520d4d81dd7f727894b06f6e
commit: 83745cf1a7e45c2930061f6a9b3d874152999b32 [48/53] x86/fpu: Hook up PKRU into ptrace()
config: x86_64-rhel-8.3-kselftests (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/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel x86/fpu
git checkout 83745cf1a7e45c2930061f6a9b3d874152999b32
# 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(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/fpu/regset.c: In function 'xfpregs_get':
>> arch/x86/kernel/fpu/regset.c:46:33: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type [-Werror=incompatible-pointer-types]
46 | copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
| ^~~~~~~~~~~~~~~~~
| |
| struct xregs_state *
In file included from arch/x86/include/asm/pkru.h:5,
from arch/x86/include/asm/pgtable.h:26,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from arch/x86/include/asm/fpu/internal.h:17,
from arch/x86/kernel/fpu/regset.c:8:
arch/x86/include/asm/fpu/xstate.h:142:71: note: expected 'struct task_struct *' but argument is of type 'struct xregs_state *'
142 | void copy_uabi_xstate_to_membuf(struct membuf to, struct task_struct *tsk,
| ~~~~~~~~~~~~~~~~~~~~^~~
arch/x86/kernel/fpu/regset.c: In function 'fpregs_get':
arch/x86/kernel/fpu/regset.c:303:34: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type [-Werror=incompatible-pointer-types]
303 | copy_uabi_xstate_to_membuf(mb, &fpu->state.xsave, XSTATE_COPY_FP);
| ^~~~~~~~~~~~~~~~~
| |
| struct xregs_state *
In file included from arch/x86/include/asm/pkru.h:5,
from arch/x86/include/asm/pgtable.h:26,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from arch/x86/include/asm/fpu/internal.h:17,
from arch/x86/kernel/fpu/regset.c:8:
arch/x86/include/asm/fpu/xstate.h:142:71: note: expected 'struct task_struct *' but argument is of type 'struct xregs_state *'
142 | void copy_uabi_xstate_to_membuf(struct membuf to, struct task_struct *tsk,
| ~~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
--
arch/x86/kernel/fpu/xstate.c: In function 'copy_uabi_xstate_to_membuf':
>> arch/x86/kernel/fpu/xstate.c:1070:16: error: 'target' undeclared (first use in this function)
1070 | pkru.pkru = target->thread.pkru;
| ^~~~~~
arch/x86/kernel/fpu/xstate.c:1070:16: note: each undeclared identifier is reported only once for each function it appears in
vim +/copy_uabi_xstate_to_membuf +46 arch/x86/kernel/fpu/regset.c
0c306bcfba2882 Ingo Molnar 2015-04-30 30
0c306bcfba2882 Ingo Molnar 2015-04-30 31 int xfpregs_get(struct task_struct *target, const struct user_regset *regset,
0557d64d983e3d Al Viro 2020-02-18 32 struct membuf to)
0c306bcfba2882 Ingo Molnar 2015-04-30 33 {
0c306bcfba2882 Ingo Molnar 2015-04-30 34 struct fpu *fpu = &target->thread.fpu;
0c306bcfba2882 Ingo Molnar 2015-04-30 35
2467897d5adf53 Thomas Gleixner 2021-06-14 36 if (!static_cpu_has(X86_FEATURE_FXSR))
0c306bcfba2882 Ingo Molnar 2015-04-30 37 return -ENODEV;
0c306bcfba2882 Ingo Molnar 2015-04-30 38
369a036de20671 Ingo Molnar 2017-09-23 39 fpu__prepare_read(fpu);
0c306bcfba2882 Ingo Molnar 2015-04-30 40
2467897d5adf53 Thomas Gleixner 2021-06-14 41 if (!use_xsave()) {
2467897d5adf53 Thomas Gleixner 2021-06-14 42 return membuf_write(&to, &fpu->state.fxsave,
2467897d5adf53 Thomas Gleixner 2021-06-14 43 sizeof(fpu->state.fxsave));
2467897d5adf53 Thomas Gleixner 2021-06-14 44 }
2467897d5adf53 Thomas Gleixner 2021-06-14 45
2467897d5adf53 Thomas Gleixner 2021-06-14 @46 copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
2467897d5adf53 Thomas Gleixner 2021-06-14 47 return 0;
0c306bcfba2882 Ingo Molnar 2015-04-30 48 }
0c306bcfba2882 Ingo Molnar 2015-04-30 49
:::::: The code at line 46 was first introduced by commit
:::::: 2467897d5adf53cd056c96199f8222f0fa2e5a55 x86/fpu: Use copy_uabi_xstate_to_membuf() in xfpregs_get()
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tglx-devel:x86/fpu 48/53] arch/x86/kernel/fpu/regset.c:46:33: error: incompatible pointer types passing 'struct xregs_state *' to parameter of type 'struct task_struct *'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu
head: 70e967061547de5e520d4d81dd7f727894b06f6e
commit: 83745cf1a7e45c2930061f6a9b3d874152999b32 [48/53] x86/fpu: Hook up PKRU into ptrace()
config: x86_64-randconfig-a001-20210614 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel x86/fpu
git checkout 83745cf1a7e45c2930061f6a9b3d874152999b32
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/kernel/fpu/regset.c:46:33: error: incompatible pointer types passing 'struct xregs_state *' to parameter of type 'struct task_struct *' [-Werror,-Wincompatible-pointer-types]
copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
^~~~~~~~~~~~~~~~~
arch/x86/include/asm/fpu/xstate.h:142:71: note: passing argument to parameter 'tsk' here
void copy_uabi_xstate_to_membuf(struct membuf to, struct task_struct *tsk,
^
1 error generated.
--
>> arch/x86/kernel/fpu/xstate.c:1070:16: error: use of undeclared identifier 'target'
pkru.pkru = target->thread.pkru;
^
1 error generated.
vim +46 arch/x86/kernel/fpu/regset.c
0c306bcfba2882 Ingo Molnar 2015-04-30 30
0c306bcfba2882 Ingo Molnar 2015-04-30 31 int xfpregs_get(struct task_struct *target, const struct user_regset *regset,
0557d64d983e3d Al Viro 2020-02-18 32 struct membuf to)
0c306bcfba2882 Ingo Molnar 2015-04-30 33 {
0c306bcfba2882 Ingo Molnar 2015-04-30 34 struct fpu *fpu = &target->thread.fpu;
0c306bcfba2882 Ingo Molnar 2015-04-30 35
2467897d5adf53 Thomas Gleixner 2021-06-14 36 if (!static_cpu_has(X86_FEATURE_FXSR))
0c306bcfba2882 Ingo Molnar 2015-04-30 37 return -ENODEV;
0c306bcfba2882 Ingo Molnar 2015-04-30 38
369a036de20671 Ingo Molnar 2017-09-23 39 fpu__prepare_read(fpu);
0c306bcfba2882 Ingo Molnar 2015-04-30 40
2467897d5adf53 Thomas Gleixner 2021-06-14 41 if (!use_xsave()) {
2467897d5adf53 Thomas Gleixner 2021-06-14 42 return membuf_write(&to, &fpu->state.fxsave,
2467897d5adf53 Thomas Gleixner 2021-06-14 43 sizeof(fpu->state.fxsave));
2467897d5adf53 Thomas Gleixner 2021-06-14 44 }
2467897d5adf53 Thomas Gleixner 2021-06-14 45
2467897d5adf53 Thomas Gleixner 2021-06-14 @46 copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
2467897d5adf53 Thomas Gleixner 2021-06-14 47 return 0;
0c306bcfba2882 Ingo Molnar 2015-04-30 48 }
0c306bcfba2882 Ingo Molnar 2015-04-30 49
:::::: The code at line 46 was first introduced by commit
:::::: 2467897d5adf53cd056c96199f8222f0fa2e5a55 x86/fpu: Use copy_uabi_xstate_to_membuf() in xfpregs_get()
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 291/364] fs/ext2/xattr_trusted.c:15:9: error: implicit declaration of function 'capable'
by kernel test robot
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=66...
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(a)intel.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(a)redhat.com>
:::::: CC: Al Viro <viro(a)zeniv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[peterz-queue:sched/wip-freezer 1/3] include/linux/suspend.h:546:52: warning: omitting the parameter name in a function definition is a C2x extension
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip-freezer
head: 9ddb4cc740408e85babad7482f50e1b4d2490759
commit: 83d18804b7330928d3176cd76939cf558581e092 [1/3] freezer: Have {,un}lock_system_sleep() save/restore flags
config: x86_64-randconfig-a004-20210614 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/wip-freezer
git checkout 83d18804b7330928d3176cd76939cf558581e092
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:13:
>> include/linux/suspend.h:546:52: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
static inline void unlock_system_sleep(unsigned int) {}
^
1 warning generated.
--
In file included from drivers/usb/misc/usb251xb.c:20:
In file included from include/linux/regulator/consumer.h:35:
>> include/linux/suspend.h:546:52: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
static inline void unlock_system_sleep(unsigned int) {}
^
drivers/usb/misc/usb251xb.c:159:35: warning: unused variable 'usb2422_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2422_data = {
^
drivers/usb/misc/usb251xb.c:167:35: warning: unused variable 'usb2512b_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2512b_data = {
^
drivers/usb/misc/usb251xb.c:175:35: warning: unused variable 'usb2512bi_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2512bi_data = {
^
drivers/usb/misc/usb251xb.c:183:35: warning: unused variable 'usb2513b_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2513b_data = {
^
drivers/usb/misc/usb251xb.c:191:35: warning: unused variable 'usb2513bi_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2513bi_data = {
^
drivers/usb/misc/usb251xb.c:199:35: warning: unused variable 'usb2514b_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2514b_data = {
^
drivers/usb/misc/usb251xb.c:207:35: warning: unused variable 'usb2514bi_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2514bi_data = {
^
drivers/usb/misc/usb251xb.c:215:35: warning: unused variable 'usb2517_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2517_data = {
^
drivers/usb/misc/usb251xb.c:223:35: warning: unused variable 'usb2517i_data' [-Wunused-const-variable]
static const struct usb251xb_data usb2517i_data = {
^
10 warnings generated.
--
In file included from arch/x86/kernel/asm-offsets.c:13:
>> include/linux/suspend.h:546:52: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
static inline void unlock_system_sleep(unsigned int) {}
^
1 warning generated.
vim +546 include/linux/suspend.h
544
545 static inline unsigned int lock_system_sleep(void) { return 0; }
> 546 static inline void unlock_system_sleep(unsigned int) {}
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 255/364] include/linux/printk.h:505:9: error: type defaults to 'int' in declaration of 'DEFINE_RATELIMIT_STATE'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: a490873e1d58c0b339bb50ee382dc1fe95c6d9a4 [255/364] sched/headers, printk: Reduce <linux/printk.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=a4...
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 a490873e1d58c0b339bb50ee382dc1fe95c6d9a4
# 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(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:7,
from include/linux/crypto.h:16,
from include/crypto/algapi.h:10,
from crypto/arc4.c:10:
crypto/arc4.c: In function 'crypto_arc4_init':
>> include/linux/printk.h:505:9: error: type defaults to 'int' in declaration of 'DEFINE_RATELIMIT_STATE' [-Werror=implicit-int]
505 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:526:2: note: in expansion of macro 'printk_ratelimited'
526 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
crypto/arc4.c:46:2: note: in expansion of macro 'pr_warn_ratelimited'
46 | pr_warn_ratelimited("\"%s\" (%ld) uses obsolete ecb(arc4) skcipher\n",
| ^~~~~~~~~~~~~~~~~~~
>> crypto/arc4.c:46:2: warning: parameter names (without types) in function declaration
In file included from include/linux/kernel.h:7,
from include/linux/crypto.h:16,
from include/crypto/algapi.h:10,
from crypto/arc4.c:10:
>> include/linux/printk.h:505:9: error: invalid storage class for function 'DEFINE_RATELIMIT_STATE'
505 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:526:2: note: in expansion of macro 'printk_ratelimited'
526 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
crypto/arc4.c:46:2: note: in expansion of macro 'pr_warn_ratelimited'
46 | pr_warn_ratelimited("\"%s\" (%ld) uses obsolete ecb(arc4) skcipher\n",
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/printk.h:509:6: error: implicit declaration of function '__ratelimit' [-Werror=implicit-function-declaration]
509 | if (__ratelimit(&_rs)) \
| ^~~~~~~~~~~
include/linux/printk.h:526:2: note: in expansion of macro 'printk_ratelimited'
526 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
crypto/arc4.c:46:2: note: in expansion of macro 'pr_warn_ratelimited'
46 | pr_warn_ratelimited("\"%s\" (%ld) uses obsolete ecb(arc4) skcipher\n",
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/printk.h:509:19: error: '_rs' undeclared (first use in this function)
509 | if (__ratelimit(&_rs)) \
| ^~~
include/linux/printk.h:526:2: note: in expansion of macro 'printk_ratelimited'
526 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
crypto/arc4.c:46:2: note: in expansion of macro 'pr_warn_ratelimited'
46 | pr_warn_ratelimited("\"%s\" (%ld) uses obsolete ecb(arc4) skcipher\n",
| ^~~~~~~~~~~~~~~~~~~
include/linux/printk.h:509:19: note: each undeclared identifier is reported only once for each function it appears in
509 | if (__ratelimit(&_rs)) \
| ^~~
include/linux/printk.h:526:2: note: in expansion of macro 'printk_ratelimited'
526 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
crypto/arc4.c:46:2: note: in expansion of macro 'pr_warn_ratelimited'
46 | pr_warn_ratelimited("\"%s\" (%ld) uses obsolete ecb(arc4) skcipher\n",
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +505 include/linux/printk.h
16cb839f133249 Joe Perches 2011-01-12 497
968ab1838a5d48 Linus Torvalds 2010-11-15 498 /*
968ab1838a5d48 Linus Torvalds 2010-11-15 499 * ratelimited messages with local ratelimit_state,
968ab1838a5d48 Linus Torvalds 2010-11-15 500 * no local ratelimit_state used in the !PRINTK case
968ab1838a5d48 Linus Torvalds 2010-11-15 501 */
968ab1838a5d48 Linus Torvalds 2010-11-15 502 #ifdef CONFIG_PRINTK
6ec42a56e25846 Joe Perches 2011-01-12 503 #define printk_ratelimited(fmt, ...) \
6ec42a56e25846 Joe Perches 2011-01-12 504 ({ \
968ab1838a5d48 Linus Torvalds 2010-11-15 @505 static DEFINE_RATELIMIT_STATE(_rs, \
968ab1838a5d48 Linus Torvalds 2010-11-15 506 DEFAULT_RATELIMIT_INTERVAL, \
968ab1838a5d48 Linus Torvalds 2010-11-15 507 DEFAULT_RATELIMIT_BURST); \
968ab1838a5d48 Linus Torvalds 2010-11-15 508 \
968ab1838a5d48 Linus Torvalds 2010-11-15 @509 if (__ratelimit(&_rs)) \
968ab1838a5d48 Linus Torvalds 2010-11-15 510 printk(fmt, ##__VA_ARGS__); \
968ab1838a5d48 Linus Torvalds 2010-11-15 511 })
968ab1838a5d48 Linus Torvalds 2010-11-15 512 #else
6ec42a56e25846 Joe Perches 2011-01-12 513 #define printk_ratelimited(fmt, ...) \
6ec42a56e25846 Joe Perches 2011-01-12 514 no_printk(fmt, ##__VA_ARGS__)
968ab1838a5d48 Linus Torvalds 2010-11-15 515 #endif
968ab1838a5d48 Linus Torvalds 2010-11-15 516
:::::: The code at line 505 was first introduced by commit
:::::: 968ab1838a5d48f02f5b471aa1d0e59e2cc2ccbc include/linux/kernel.h: Move logging bits to include/linux/printk.h
:::::: TO: Linus Torvalds <torvalds(a)linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[peterz-queue:sched/wip-freezer 2/3] init/do_mounts_initrd.c:86:47: error: use of undeclared identifier 'UMH_WAIT_FREEZABLE'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip-freezer
head: 9ddb4cc740408e85babad7482f50e1b4d2490759
commit: 6b4cee97b0cda639bfd51c2ad7d6b1f6fe617013 [2/3] freezer,umh: Clean up freezer/initrd interaction
config: x86_64-randconfig-a001-20210614 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/wip-freezer
git checkout 6b4cee97b0cda639bfd51c2ad7d6b1f6fe617013
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> init/do_mounts_initrd.c:86:47: error: use of undeclared identifier 'UMH_WAIT_FREEZABLE'
call_usermodehelper_exec(info, UMH_WAIT_PROC|UMH_WAIT_FREEZABLE);
^
1 error generated.
vim +/UMH_WAIT_FREEZABLE +86 init/do_mounts_initrd.c
65
66 static void __init handle_initrd(void)
67 {
68 struct subprocess_info *info;
69 static char *argv[] = { "linuxrc", NULL, };
70 extern char *envp_init[];
71 int error;
72
73 pr_warn("using deprecated initrd support, will be removed in 2021.\n");
74
75 real_root_dev = new_encode_dev(ROOT_DEV);
76 create_dev("/dev/root.old", Root_RAM0);
77 /* mount initrd on rootfs' /root */
78 mount_block_root("/dev/root.old", root_mountflags & ~MS_RDONLY);
79 init_mkdir("/old", 0700);
80 init_chdir("/old");
81
82 info = call_usermodehelper_setup("/linuxrc", argv, envp_init,
83 GFP_KERNEL, init_linuxrc, NULL, NULL);
84 if (!info)
85 return;
> 86 call_usermodehelper_exec(info, UMH_WAIT_PROC|UMH_WAIT_FREEZABLE);
87
88 /* move initrd to rootfs' /old */
89 init_mount("..", ".", NULL, MS_MOVE, NULL);
90 /* switch root and cwd back to / of rootfs */
91 init_chroot("..");
92
93 if (new_decode_dev(real_root_dev) == Root_RAM0) {
94 init_chdir("/old");
95 return;
96 }
97
98 init_chdir("/");
99 ROOT_DEV = new_decode_dev(real_root_dev);
100 mount_root();
101
102 printk(KERN_NOTICE "Trying to move old root to /initrd ... ");
103 error = init_mount("/old", "/root/initrd", NULL, MS_MOVE, NULL);
104 if (!error)
105 printk("okay\n");
106 else {
107 if (error == -ENOENT)
108 printk("/initrd does not exist. Ignored.\n");
109 else
110 printk("failed\n");
111 printk(KERN_NOTICE "Unmounting old root\n");
112 init_umount("/old", MNT_DETACH);
113 }
114 }
115
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/i2c/busses/i2c-mlxcpld.c:271:10: warning: 'val' is used uninitialized in this function
by kernel test robot
Hi Krzysztof,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 009c9aa5be652675a06d5211e1640e02bbb1c33d
commit: 4a2d5f663dab6614772d8e28ca190b127ba46d9d i2c: Enable compile testing for more drivers
date: 1 year, 5 months ago
config: parisc-randconfig-r023-20210615 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4a2d5f663dab6614772d8e28ca190b127ba46d9d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from drivers/i2c/busses/i2c-mlxcpld.c:37:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:640:2: note: in expansion of macro 'set_pte_at'
640 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
drivers/i2c/busses/i2c-mlxcpld.c: In function 'mlxcpld_i2c_check_busy':
>> drivers/i2c/busses/i2c-mlxcpld.c:271:10: warning: 'val' is used uninitialized in this function [-Wuninitialized]
271 | if (val & MLXCPLD_LPCI2C_TRANS_END)
| ^
vim +/val +271 drivers/i2c/busses/i2c-mlxcpld.c
6bec23bff91491 Vadim Pasternak 2016-11-20 263
6bec23bff91491 Vadim Pasternak 2016-11-20 264 /* Make sure the CPLD is ready to start transmitting. */
6bec23bff91491 Vadim Pasternak 2016-11-20 265 static int mlxcpld_i2c_check_busy(struct mlxcpld_i2c_priv *priv)
6bec23bff91491 Vadim Pasternak 2016-11-20 266 {
6bec23bff91491 Vadim Pasternak 2016-11-20 267 u8 val;
6bec23bff91491 Vadim Pasternak 2016-11-20 268
6bec23bff91491 Vadim Pasternak 2016-11-20 269 mlxcpld_i2c_read_comm(priv, MLXCPLD_LPCI2C_STATUS_REG, &val, 1);
6bec23bff91491 Vadim Pasternak 2016-11-20 270
6bec23bff91491 Vadim Pasternak 2016-11-20 @271 if (val & MLXCPLD_LPCI2C_TRANS_END)
6bec23bff91491 Vadim Pasternak 2016-11-20 272 return 0;
6bec23bff91491 Vadim Pasternak 2016-11-20 273
6bec23bff91491 Vadim Pasternak 2016-11-20 274 return -EIO;
6bec23bff91491 Vadim Pasternak 2016-11-20 275 }
6bec23bff91491 Vadim Pasternak 2016-11-20 276
:::::: The code at line 271 was first introduced by commit
:::::: 6bec23bff914915822f2c34d0555902fb2b9be1f i2c: mlxcpld: add master driver for mellanox systems
:::::: TO: Vadim Pasternak <vadimp(a)mellanox.com>
:::::: CC: Wolfram Sang <wsa(a)the-dreams.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[cifs:for-next 17/18] fs/cifs/dfs_cache.c:1433:1: warning: the frame size of 1120 bytes is larger than 1024 bytes
by kernel test robot
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: 93223fc8b35a801dbd2b3423c20035e8427d3271
commit: d01a3530e1ec321e74b0a4ca99e343bcb6c0dda6 [17/18] cifs: avoid starvation when refreshing dfs cache
config: mips-nlm_xlp_defconfig (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add cifs git://git.samba.org/sfrench/cifs-2.6.git
git fetch --no-tags cifs for-next
git checkout d01a3530e1ec321e74b0a4ca99e343bcb6c0dda6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/cifs/dfs_cache.c: In function 'refresh_cache':
>> fs/cifs/dfs_cache.c:1433:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1433 | }
| ^
vim +1433 fs/cifs/dfs_cache.c
345c1a4a9e09dc Paulo Alcantara (SUSE 2019-12-04 1366)
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1367 static void refresh_cache(struct cifs_ses **sessions)
5072010ccf0592 Paulo Alcantara (SUSE 2019-03-19 1368) {
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1369 int i;
5072010ccf0592 Paulo Alcantara (SUSE 2019-03-19 1370) struct cifs_ses *ses;
54be1f6c1c3749 Paulo Alcantara 2018-11-14 1371 unsigned int xid;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1372 struct {
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1373 char *path;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1374 struct cifs_ses *ses;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1375 } referrals[CACHE_MAX_ENTRIES];
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1376 int count = 0;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1377 struct cache_entry *ce;
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1378
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1379 /*
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1380 * Refresh all cached entries. Get all new referrals outside critical section to avoid
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1381 * starvation while performing SMB2 IOCTL on broken or slow connections.
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1382
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1383 * The cache entries may cover more paths than the active mounts
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1384 * (e.g. domain-based DFS referrals or multi tier DFS setups).
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1385 */
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1386 down_read(&htable_rw_lock);
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1387 for (i = 0; i < CACHE_HTABLE_SIZE; i++) {
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1388 struct hlist_head *l = &cache_htable[i];
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1389
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1390 hlist_for_each_entry(ce, l, hlist) {
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1391 if (count == ARRAY_SIZE(referrals))
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1392 goto out_unlock;
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1393 if (hlist_unhashed(&ce->hlist) || !cache_entry_expired(ce))
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1394 continue;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1395 referrals[count].path = kstrdup(ce->path, GFP_ATOMIC);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1396 referrals[count++].ses = find_ipc_from_server_path(sessions, ce->path);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1397 }
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1398 }
54be1f6c1c3749 Paulo Alcantara 2018-11-14 1399
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1400 out_unlock:
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1401 up_read(&htable_rw_lock);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1402
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1403 for (i = 0; i < count; i++) {
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1404 char *path = referrals[i].path;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1405 struct dfs_info3_param *refs = NULL;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1406 int numrefs = 0;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1407 int rc = 0;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1408
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1409 ses = referrals[i].ses;
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1410 if (!path || IS_ERR(ses))
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1411 goto next_referral;
742d8de0186e9f Paulo Alcantara (SUSE 2019-12-04 1412)
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1413 xid = get_xid();
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1414 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs);
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 1415 free_xid(xid);
54be1f6c1c3749 Paulo Alcantara 2018-11-14 1416
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1417 if (!rc) {
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1418 down_write(&htable_rw_lock);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1419 ce = lookup_cache_entry(path);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1420 /*
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1421 * We need to re-check it because other tasks might have it deleted or
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1422 * updated.
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1423 */
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1424 if (!IS_ERR(ce) && cache_entry_expired(ce))
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1425 update_cache_entry_locked(ce, refs, numrefs);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1426 up_write(&htable_rw_lock);
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1427 }
5072010ccf0592 Paulo Alcantara (SUSE 2019-03-19 1428)
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1429 next_referral:
d01a3530e1ec32 Paulo Alcantara 2021-06-08 1430 kfree(path);
54be1f6c1c3749 Paulo Alcantara 2018-11-14 1431 free_dfs_info_array(refs, numrefs);
54be1f6c1c3749 Paulo Alcantara 2018-11-14 1432 }
c3d785fa5c7bdb Paulo Alcantara 2021-06-04 @1433 }
54be1f6c1c3749 Paulo Alcantara 2018-11-14 1434
:::::: The code at line 1433 was first introduced by commit
:::::: c3d785fa5c7bdbe69cb8b223cf84396d873202ea cifs: keep referral server sessions alive
:::::: TO: Paulo Alcantara <pc(a)cjr.nz>
:::::: CC: Steve French <stfrench(a)microsoft.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 242/364] include/linux/kthread.h:55:3: error: implicit declaration of function 'wake_up_process'; did you mean 'wake_up_poll'?
by kernel test robot
Hi Ingo,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 880b182db2f9eaa03034f29e0ba191fcffc4e7f5 [242/364] sched/headers, kthread: Remove <linux/sched.h> from <linux/kthread.h>
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=88...
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 880b182db2f9eaa03034f29e0ba191fcffc4e7f5
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/srcu.h:20,
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/mm.h:12,
from include/linux/ring_buffer.h:5,
from kernel/trace/ring_buffer_benchmark.c:7:
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);
| ^~~~~~~~~~~~~~~~~~
kernel/trace/ring_buffer_benchmark.c: At top level:
>> kernel/trace/ring_buffer_benchmark.c:45:28: error: 'MAX_NICE' undeclared here (not in a function)
45 | static int producer_nice = MAX_NICE;
| ^~~~~~~~
kernel/trace/ring_buffer_benchmark.c: In function 'ring_buffer_consumer':
>> kernel/trace/ring_buffer_benchmark.c:219:3: error: implicit declaration of function 'set_current_state'; did you mean 'set_current_groups'? [-Werror=implicit-function-declaration]
219 | set_current_state(TASK_INTERRUPTIBLE);
| ^~~~~~~~~~~~~~~~~
| set_current_groups
>> kernel/trace/ring_buffer_benchmark.c:223:3: error: implicit declaration of function 'schedule' [-Werror=implicit-function-declaration]
223 | schedule();
| ^~~~~~~~
>> kernel/trace/ring_buffer_benchmark.c:225:2: error: implicit declaration of function '__set_current_state' [-Werror=implicit-function-declaration]
225 | __set_current_state(TASK_RUNNING);
| ^~~~~~~~~~~~~~~~~~~
kernel/trace/ring_buffer_benchmark.c: In function 'ring_buffer_producer':
>> kernel/trace/ring_buffer_benchmark.c:268:4: error: implicit declaration of function 'wake_up_process'; did you mean 'wake_up_poll'? [-Werror=implicit-function-declaration]
268 | wake_up_process(consumer);
| ^~~~~~~~~~~~~~~
| wake_up_poll
kernel/trace/ring_buffer_benchmark.c:281:4: error: implicit declaration of function 'cond_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
281 | cond_resched();
| ^~~~~~~~~~~~
| should_resched
kernel/trace/ring_buffer_benchmark.c: In function 'ring_buffer_producer_thread':
>> kernel/trace/ring_buffer_benchmark.c:419:3: error: implicit declaration of function 'schedule_timeout'; did you mean 'schedule_work'? [-Werror=implicit-function-declaration]
419 | schedule_timeout(HZ * SLEEP_TIME);
| ^~~~~~~~~~~~~~~~
| schedule_work
kernel/trace/ring_buffer_benchmark.c: In function 'ring_buffer_benchmark_init':
>> kernel/trace/ring_buffer_benchmark.c:459:4: error: implicit declaration of function 'sched_set_fifo' [-Werror=implicit-function-declaration]
459 | sched_set_fifo(consumer);
| ^~~~~~~~~~~~~~
>> kernel/trace/ring_buffer_benchmark.c:461:4: error: implicit declaration of function 'sched_set_fifo_low' [-Werror=implicit-function-declaration]
461 | sched_set_fifo_low(consumer);
| ^~~~~~~~~~~~~~~~~~
>> kernel/trace/ring_buffer_benchmark.c:463:4: error: implicit declaration of function 'set_user_nice'; did you mean 'seq_user_ns'? [-Werror=implicit-function-declaration]
463 | set_user_nice(consumer, consumer_nice);
| ^~~~~~~~~~~~~
| seq_user_ns
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/ring_buffer.h:5,
from kernel/trace/ring_buffer_benchmark.c:7:
kernel/trace/ring_buffer_benchmark.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 lib/kunit/try-catch.c:13:
lib/kunit/try-catch.c: In function 'kunit_try_catch_run':
>> include/linux/kthread.h:55:3: error: implicit declaration of function 'wake_up_process'; did you mean 'wake_up_poll'? [-Werror=implicit-function-declaration]
55 | wake_up_process(__k); \
| ^~~~~~~~~~~~~~~
lib/kunit/try-catch.c:68:16: note: in expansion of macro 'kthread_run'
68 | task_struct = kthread_run(kunit_generic_run_threadfn_adapter,
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +55 include/linux/kthread.h
ac687e6e8c2618 Peter Zijlstra 2021-01-12 40
^1da177e4c3f41 Linus Torvalds 2005-04-16 41 /**
9e37bd301ee130 Randy Dunlap 2006-06-25 42 * kthread_run - create and wake a thread.
^1da177e4c3f41 Linus Torvalds 2005-04-16 43 * @threadfn: the function to run until signal_pending(current).
^1da177e4c3f41 Linus Torvalds 2005-04-16 44 * @data: data ptr for @threadfn.
^1da177e4c3f41 Linus Torvalds 2005-04-16 45 * @namefmt: printf-style name for the thread.
^1da177e4c3f41 Linus Torvalds 2005-04-16 46 *
^1da177e4c3f41 Linus Torvalds 2005-04-16 47 * Description: Convenient wrapper for kthread_create() followed by
9e37bd301ee130 Randy Dunlap 2006-06-25 48 * wake_up_process(). Returns the kthread or ERR_PTR(-ENOMEM).
9e37bd301ee130 Randy Dunlap 2006-06-25 49 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 50 #define kthread_run(threadfn, data, namefmt, ...) \
^1da177e4c3f41 Linus Torvalds 2005-04-16 51 ({ \
^1da177e4c3f41 Linus Torvalds 2005-04-16 52 struct task_struct *__k \
^1da177e4c3f41 Linus Torvalds 2005-04-16 53 = kthread_create(threadfn, data, namefmt, ## __VA_ARGS__); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 54 if (!IS_ERR(__k)) \
^1da177e4c3f41 Linus Torvalds 2005-04-16 @55 wake_up_process(__k); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 56 __k; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 57 })
^1da177e4c3f41 Linus Torvalds 2005-04-16 58
:::::: The code at line 55 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months