Re: arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of function 'ep_op_has_event'
On Wed, Feb 17, 2021 at 09:56:08PM -0800, Randy Dunlap wrote: > On 2/17/21 9:26 PM, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: f40ddce88593482919761f74910f42f4b84c004b > > commit: c281634c865202e2776b0250678ff93c771947ff ARM: compat: remove > > KERNEL_DS usage in sys_oabi_epoll_ctl() > > date: 10 months ago > > config: arm-randconfig-m031-20210218 (attached as .config) > > compiler: arm-linux-gnueabi-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/?id=c281634c865202e2776b0250678ff93c771947ff > > git remote add linus > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout c281634c865202e2776b0250678ff93c771947ff > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross > > ARCH=arm > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > >arch/arm/kernel/sys_oabi-compat.c:142:17: warning: no previous prototype > > for 'sys_oabi_stat64' [-Wmissing-prototypes] > > 142 | asmlinkage long sys_oabi_stat64(const char __user * filename, > > | ^~~ > >arch/arm/kernel/sys_oabi-compat.c:152:17: warning: no previous prototype > > for 'sys_oabi_lstat64' [-Wmissing-prototypes] > > 152 | asmlinkage long sys_oabi_lstat64(const char __user * filename, > > | ^~~~ > >arch/arm/kernel/sys_oabi-compat.c:162:17: warning: no previous prototype > > for 'sys_oabi_fstat64' [-Wmissing-prototypes] > > 162 | asmlinkage long sys_oabi_fstat64(unsigned long fd, > > | ^~~~ > >arch/arm/kernel/sys_oabi-compat.c:172:17: warning: no previous prototype > > for 'sys_oabi_fstatat64' [-Wmissing-prototypes] > > 172 | asmlinkage long sys_oabi_fstatat64(int dfd, > > | ^~ > >arch/arm/kernel/sys_oabi-compat.c:229:17: warning: no previous prototype > > for 'sys_oabi_fcntl64' [-Wmissing-prototypes] > > 229 | asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int > > cmd, > > | ^~~~ > >arch/arm/kernel/sys_oabi-compat.c:251:17: warning: no previous prototype > > for 'sys_oabi_epoll_ctl' [-Wmissing-prototypes] > > 251 | asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, > > | ^~ > >In file included from include/linux/kernel.h:11, > > from include/linux/list.h:9, > > from include/linux/wait.h:7, > > from include/linux/wait_bit.h:8, > > from include/linux/fs.h:6, > > from include/uapi/linux/aio_abi.h:31, > > from include/linux/syscalls.h:74, > > from arch/arm/kernel/sys_oabi-compat.c:73: > >arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_epoll_ctl': > >>> arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of > >>> function 'ep_op_has_event' [-Werror=implicit-function-declaration] > > 257 | if (ep_op_has_event(op) && > > | ^~~ > >include/linux/compiler.h:58:52: note: in definition of macro > > '__trace_if_var' > > 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? > > (cond) : __trace_if_value(cond)) > > |^~~~ > >arch/arm/kernel/sys_oabi-compat.c:257:2: note: in expansion of macro 'if' > > 257 | if (ep_op_has_event(op) && > > | ^~ > >>> arch/arm/kernel/sys_oabi-compat.c:264:9: error: implicit declaration of > >>> function 'do_epoll_ctl'; did you mean 'sys_epoll_ctl'? > >>> [-Werror=implicit-function-declaration] > > 264 | return do_epoll_ctl(epfd, op, fd, , false); > > | ^~~~ > > | sys_epoll_ctl > >arch/arm/kernel/sys_oabi-compat.c: At top level: > >arch/arm/kernel/sys_oabi-compat.c:267:17: warning: no previous prototype > > for 'sys_oabi_epoll_wait' [-Wmissing-prototypes] > > 267 | asmlinkage long sys_oabi_epoll_wait(int epfd, > > | ^~~ > >arch/arm/kernel/sys_oabi-compat.c:309:17: warning: no previous prototype > > for 'sys_oabi_semtimedop' [-Wmissing-prototypes] > > 309 | asmlinkage long sys_oabi_semtimedop(int semid, > > | ^~~ > >arch/arm/kernel/sys_oabi-compat.c:352:17: warning:
Re: arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of function 'ep_op_has_event'
On 2/17/21 9:26 PM, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: f40ddce88593482919761f74910f42f4b84c004b > commit: c281634c865202e2776b0250678ff93c771947ff ARM: compat: remove > KERNEL_DS usage in sys_oabi_epoll_ctl() > date: 10 months ago > config: arm-randconfig-m031-20210218 (attached as .config) > compiler: arm-linux-gnueabi-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/?id=c281634c865202e2776b0250678ff93c771947ff > git remote add linus > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout c281634c865202e2776b0250678ff93c771947ff > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross > ARCH=arm > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > >arch/arm/kernel/sys_oabi-compat.c:142:17: warning: no previous prototype > for 'sys_oabi_stat64' [-Wmissing-prototypes] > 142 | asmlinkage long sys_oabi_stat64(const char __user * filename, > | ^~~ >arch/arm/kernel/sys_oabi-compat.c:152:17: warning: no previous prototype > for 'sys_oabi_lstat64' [-Wmissing-prototypes] > 152 | asmlinkage long sys_oabi_lstat64(const char __user * filename, > | ^~~~ >arch/arm/kernel/sys_oabi-compat.c:162:17: warning: no previous prototype > for 'sys_oabi_fstat64' [-Wmissing-prototypes] > 162 | asmlinkage long sys_oabi_fstat64(unsigned long fd, > | ^~~~ >arch/arm/kernel/sys_oabi-compat.c:172:17: warning: no previous prototype > for 'sys_oabi_fstatat64' [-Wmissing-prototypes] > 172 | asmlinkage long sys_oabi_fstatat64(int dfd, > | ^~ >arch/arm/kernel/sys_oabi-compat.c:229:17: warning: no previous prototype > for 'sys_oabi_fcntl64' [-Wmissing-prototypes] > 229 | asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd, > | ^~~~ >arch/arm/kernel/sys_oabi-compat.c:251:17: warning: no previous prototype > for 'sys_oabi_epoll_ctl' [-Wmissing-prototypes] > 251 | asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, > | ^~ >In file included from include/linux/kernel.h:11, > from include/linux/list.h:9, > from include/linux/wait.h:7, > from include/linux/wait_bit.h:8, > from include/linux/fs.h:6, > from include/uapi/linux/aio_abi.h:31, > from include/linux/syscalls.h:74, > from arch/arm/kernel/sys_oabi-compat.c:73: >arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_epoll_ctl': >>> arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of >>> function 'ep_op_has_event' [-Werror=implicit-function-declaration] > 257 | if (ep_op_has_event(op) && > | ^~~ >include/linux/compiler.h:58:52: note: in definition of macro > '__trace_if_var' > 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) > : __trace_if_value(cond)) > |^~~~ >arch/arm/kernel/sys_oabi-compat.c:257:2: note: in expansion of macro 'if' > 257 | if (ep_op_has_event(op) && > | ^~ >>> arch/arm/kernel/sys_oabi-compat.c:264:9: error: implicit declaration of >>> function 'do_epoll_ctl'; did you mean 'sys_epoll_ctl'? >>> [-Werror=implicit-function-declaration] > 264 | return do_epoll_ctl(epfd, op, fd, , false); > | ^~~~ > | sys_epoll_ctl >arch/arm/kernel/sys_oabi-compat.c: At top level: >arch/arm/kernel/sys_oabi-compat.c:267:17: warning: no previous prototype > for 'sys_oabi_epoll_wait' [-Wmissing-prototypes] > 267 | asmlinkage long sys_oabi_epoll_wait(int epfd, > | ^~~ >arch/arm/kernel/sys_oabi-compat.c:309:17: warning: no previous prototype > for 'sys_oabi_semtimedop' [-Wmissing-prototypes] > 309 | asmlinkage long sys_oabi_semtimedop(int semid, > | ^~~ >arch/arm/kernel/sys_oabi-compat.c:352:17: warning: no previous prototype > for 'sys_oabi_semop' [-Wmissing-prototypes] > 352 | asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf > __user *tsops, > | ^~ >