[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202251308.WOVSZ75H-lkp@intel.com>
Date: Fri, 25 Feb 2022 13:51:46 +0800
From: kernel test robot <lkp@...el.com>
To: Dinh Nguyen <dinguyen@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...db.de>
Subject: [dinguyen:nios2_for_v5.18 6/6] include/asm-generic/uaccess.h:225:7:
error: implicit declaration of function 'get_fs'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git nios2_for_v5.18
head: 048b7695b48a3a4523a7a7fbfedc396b40ccf62f
commit: 048b7695b48a3a4523a7a7fbfedc396b40ccf62f [6/6] uaccess: drop maining CONFIG_SET_FS users
config: hexagon-randconfig-r004-20220225 (https://download.01.org/0day-ci/archive/20220225/202202251308.WOVSZ75H-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/dinguyen/linux.git/commit/?id=048b7695b48a3a4523a7a7fbfedc396b40ccf62f
git remote add dinguyen https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
git fetch --no-tags dinguyen nios2_for_v5.18
git checkout 048b7695b48a3a4523a7a7fbfedc396b40ccf62f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon prepare
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 >>):
scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: implicit declaration of function 'get_fs' [-Werror,-Wimplicit-function-declaration]
if (!access_ok(to, n))
^
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:4: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: member reference base type 'int' is not a structure or union
if (!access_ok(to, n))
^~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:36:12: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
~~~~~~~~^~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: use of undeclared identifier 'KERNEL_DS'
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:20: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: member reference base type 'int' is not a structure or union
if (!access_ok(to, n))
^~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:37:34: note: expanded from macro '__access_ok'
(((unsigned long)addr < get_fs().seg) && \
~~~~~~~~^~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: member reference base type 'int' is not a structure or union
if (!access_ok(to, n))
^~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:38:35: note: expanded from macro '__access_ok'
(unsigned long)size < (get_fs().seg - (unsigned long)addr)))
~~~~~~~~^~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: member reference base type 'int' is not a structure or union
if (!access_ok(to, n))
^~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:36:12: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
~~~~~~~~^~~~
include/linux/compiler.h:45:66: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: use of undeclared identifier 'KERNEL_DS'
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:20: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: member reference base type 'int' is not a structure or union
if (!access_ok(to, n))
^~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:37:34: note: expanded from macro '__access_ok'
(((unsigned long)addr < get_fs().seg) && \
~~~~~~~~^~~~
include/linux/compiler.h:45:66: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
In file included from include/linux/uaccess.h:11:
In file included from arch/hexagon/include/asm/uaccess.h:60:
>> include/asm-generic/uaccess.h:225:7: error: member reference base type 'int' is not a structure or union
if (!access_ok(to, n))
^~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:38:35: note: expanded from macro '__access_ok'
(unsigned long)size < (get_fs().seg - (unsigned long)addr)))
~~~~~~~~^~~~
include/linux/compiler.h:45:66: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: implicit declaration of function 'get_fs' [-Werror,-Wimplicit-function-declaration]
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:4: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: member reference base type 'int' is not a structure or union
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^~~~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:36:12: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
~~~~~~~~^~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: use of undeclared identifier 'KERNEL_DS'
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:20: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: member reference base type 'int' is not a structure or union
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^~~~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:37:34: note: expanded from macro '__access_ok'
(((unsigned long)addr < get_fs().seg) && \
~~~~~~~~^~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: member reference base type 'int' is not a structure or union
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^~~~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:38:35: note: expanded from macro '__access_ok'
(unsigned long)size < (get_fs().seg - (unsigned long)addr)))
~~~~~~~~^~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: member reference base type 'int' is not a structure or union
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^~~~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:36:12: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
~~~~~~~~^~~~
include/linux/compiler.h:45:66: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: use of undeclared identifier 'KERNEL_DS'
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:20: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: member reference base type 'int' is not a structure or union
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^~~~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:37:34: note: expanded from macro '__access_ok'
(((unsigned long)addr < get_fs().seg) && \
~~~~~~~~^~~~
include/linux/compiler.h:45:66: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: member reference base type 'int' is not a structure or union
if (!should_fail_usercopy() && likely(access_ok(from, n))) {
^~~~~~~~~~~~~~~~~~
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^~~~~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/uaccess.h:38:35: note: expanded from macro '__access_ok'
(unsigned long)size < (get_fs().seg - (unsigned long)addr)))
~~~~~~~~^~~~
include/linux/compiler.h:45:66: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
include/linux/compiler.h:45:39: note: expanded from macro 'likely'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:9:
In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:117:40: error: implicit declaration of function 'get_fs' [-Werror,-Wimplicit-function-declaration]
include/asm-generic/access_ok.h:48:38: note: expanded from macro 'access_ok'
#define access_ok(addr, size) likely(__access_ok(addr, size))
^
arch/hexagon/include/asm/uaccess.h:36:4: note: expanded from macro '__access_ok'
((get_fs().seg == KERNEL_DS.seg) || \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [scripts/Makefile.build:121: arch/hexagon/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1191: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/get_fs +225 include/asm-generic/uaccess.h
eed417ddd52146 Arnd Bergmann 2009-05-13 220
eed417ddd52146 Arnd Bergmann 2009-05-13 221 static inline __must_check unsigned long
eed417ddd52146 Arnd Bergmann 2009-05-13 222 clear_user(void __user *to, unsigned long n)
eed417ddd52146 Arnd Bergmann 2009-05-13 223 {
e0acd0bd059416 Michael S. Tsirkin 2013-05-26 224 might_fault();
96d4f267e40f95 Linus Torvalds 2019-01-03 @225 if (!access_ok(to, n))
eed417ddd52146 Arnd Bergmann 2009-05-13 226 return n;
eed417ddd52146 Arnd Bergmann 2009-05-13 227
eed417ddd52146 Arnd Bergmann 2009-05-13 228 return __clear_user(to, n);
eed417ddd52146 Arnd Bergmann 2009-05-13 229 }
eed417ddd52146 Arnd Bergmann 2009-05-13 230
:::::: The code at line 225 was first introduced by commit
:::::: 96d4f267e40f9509e8a66e2b39e8b95655617693 Remove 'type' argument from access_ok() function
:::::: TO: Linus Torvalds <torvalds@...ux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists