[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202106142156.M4zEzzkq-lkp@intel.com>
Date: Mon, 14 Jun 2021 21:22:01 +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 237/364] arch/x86/include/asm/thread_info.h:224:7:
error: implicit declaration of function 'current_thread_info'; did you mean
'current_real_cred'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: ae74b8bd2e5fd9dbe3177aaf3080799272becb8d [237/364] sched/headers, x86/compat: Simplify <asm/compat.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=ae74b8bd2e5fd9dbe3177aaf3080799272becb8d
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 ae74b8bd2e5fd9dbe3177aaf3080799272becb8d
# 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/radix-tree.h:16,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from drivers/gpio/gpiolib-cdev.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);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/thread_info.h:50,
from include/linux/uio.h:9,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from drivers/gpio/gpiolib-cdev.c:8:
drivers/gpio/gpiolib-cdev.c: In function 'lineevent_read':
>> arch/x86/include/asm/thread_info.h:224:7: error: implicit declaration of function 'current_thread_info'; did you mean 'current_real_cred'? [-Werror=implicit-function-declaration]
224 | current_thread_info()->status & TS_COMPAT)
| ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/compat.h:175:43: note: in expansion of macro 'in_ia32_syscall'
175 | #define compat_need_64bit_alignment_fixup in_ia32_syscall
| ^~~~~~~~~~~~~~~
drivers/gpio/gpiolib-cdev.c:1533:6: note: in expansion of macro 'compat_need_64bit_alignment_fixup'
1533 | if (compat_need_64bit_alignment_fixup())
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/thread_info.h:224:28: error: invalid type argument of '->' (have 'int')
224 | current_thread_info()->status & TS_COMPAT)
| ^~
arch/x86/include/asm/compat.h:175:43: note: in expansion of macro 'in_ia32_syscall'
175 | #define compat_need_64bit_alignment_fixup in_ia32_syscall
| ^~~~~~~~~~~~~~~
drivers/gpio/gpiolib-cdev.c:1533:6: note: in expansion of macro 'compat_need_64bit_alignment_fixup'
1533 | if (compat_need_64bit_alignment_fixup())
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from include/linux/compat.h:19,
from drivers/gpio/gpiolib-cdev.c:8:
drivers/gpio/gpiolib-cdev.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 +224 arch/x86/include/asm/thread_info.h
ef334a20d84f52 Srikar Dronamraju 2012-03-13 219
ef334a20d84f52 Srikar Dronamraju 2012-03-13 220 #ifdef CONFIG_X86_32
b9d989c7218ac9 Andy Lutomirski 2016-09-13 221 #define in_ia32_syscall() true
b9d989c7218ac9 Andy Lutomirski 2016-09-13 222 #else
b9d989c7218ac9 Andy Lutomirski 2016-09-13 223 #define in_ia32_syscall() (IS_ENABLED(CONFIG_IA32_EMULATION) && \
37a8f7c38339b2 Andy Lutomirski 2018-01-28 @224 current_thread_info()->status & TS_COMPAT)
ef334a20d84f52 Srikar Dronamraju 2012-03-13 225 #endif
1daeaa315164c6 Brian Gerst 2015-03-21 226
:::::: The code at line 224 was first introduced by commit
:::::: 37a8f7c38339b22b69876d6f5a0ab851565284e3 x86/asm: Move 'status' from thread_struct to thread_info
:::::: TO: Andy Lutomirski <luto@...nel.org>
:::::: CC: Thomas Gleixner <tglx@...utronix.de>
---
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