All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-stable:pending-5.10 45/282] arch/arm/kernel/sys_oabi-compat.c:347:2: error: #endif without #if
@ 2021-09-19 11:51 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-19 11:51 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 9316 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head:   b148aaebca942e2fd79492a162e3b7b1f99cff6a
commit: 2f0ae9390e9939879900db53c0cbdcb224fe29f1 [45/282] ARM: 9109/1: oabi-compat: add epoll_pwait handler
config: arm-randconfig-c002-20210919 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=2f0ae9390e9939879900db53c0cbdcb224fe29f1
        git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-stable pending-5.10
        git checkout 2f0ae9390e9939879900db53c0cbdcb224fe29f1
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/kernel/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/arm/kernel/sys_oabi-compat.c:142:17: warning: no previous prototype for function 'sys_oabi_stat64' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_stat64(const char __user * filename,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:142:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_stat64(const char __user * filename,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:152:17: warning: no previous prototype for function 'sys_oabi_lstat64' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_lstat64(const char __user * filename,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:152:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_lstat64(const char __user * filename,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:162:17: warning: no previous prototype for function 'sys_oabi_fstat64' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_fstat64(unsigned long fd,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:162:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_fstat64(unsigned long fd,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:172:17: warning: no previous prototype for function 'sys_oabi_fstatat64' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_fstatat64(int dfd,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:172:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_fstatat64(int dfd,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:229:17: warning: no previous prototype for function 'sys_oabi_fcntl64' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:229:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:252:17: warning: no previous prototype for function 'sys_oabi_epoll_ctl' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:252:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
              ^
              static 
>> arch/arm/kernel/sys_oabi-compat.c:347:2: error: #endif without #if
   #endif
    ^
   arch/arm/kernel/sys_oabi-compat.c:356:17: warning: no previous prototype for function 'sys_oabi_semtimedop' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_semtimedop(int semid,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:356:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_semtimedop(int semid,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:399:17: warning: no previous prototype for function 'sys_oabi_semop' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:399:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:405:16: warning: no previous prototype for function 'sys_oabi_ipc' [-Wmissing-prototypes]
   asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
                  ^
   arch/arm/kernel/sys_oabi-compat.c:405:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:423:17: warning: no previous prototype for function 'sys_oabi_bind' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen)
                   ^
   arch/arm/kernel/sys_oabi-compat.c:423:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen)
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:433:17: warning: no previous prototype for function 'sys_oabi_connect' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen)
                   ^
   arch/arm/kernel/sys_oabi-compat.c:433:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen)
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:443:17: warning: no previous prototype for function 'sys_oabi_sendto' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_sendto(int fd, void __user *buff,
                   ^
   arch/arm/kernel/sys_oabi-compat.c:443:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_sendto(int fd, void __user *buff,
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:456:17: warning: no previous prototype for function 'sys_oabi_sendmsg' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags)
                   ^
   arch/arm/kernel/sys_oabi-compat.c:456:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags)
              ^
              static 
   arch/arm/kernel/sys_oabi-compat.c:482:17: warning: no previous prototype for function 'sys_oabi_socketcall' [-Wmissing-prototypes]
   asmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args)
                   ^
   arch/arm/kernel/sys_oabi-compat.c:482:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args)
              ^
              static 
   14 warnings and 1 error generated.


vim +347 arch/arm/kernel/sys_oabi-compat.c

   322	
   323	/*
   324	 * Implement the event wait interface for the eventpoll file. It is the kernel
   325	 * part of the user space epoll_pwait(2).
   326	 */
   327	SYSCALL_DEFINE6(oabi_epoll_pwait, int, epfd,
   328			struct oabi_epoll_event __user *, events, int, maxevents,
   329			int, timeout, const sigset_t __user *, sigmask,
   330			size_t, sigsetsize)
   331	{
   332		int error;
   333	
   334		/*
   335		 * If the caller wants a certain signal mask to be set during the wait,
   336		 * we apply it here.
   337		 */
   338		error = set_user_sigmask(sigmask, sigsetsize);
   339		if (error)
   340			return error;
   341	
   342		error = do_oabi_epoll_wait(epfd, events, maxevents, timeout);
   343		restore_saved_sigmask_unless(error == -EINTR);
   344	
   345		return error;
   346	}
 > 347	#endif
   348	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31356 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sashal-stable:pending-5.10 45/282] arch/arm/kernel/sys_oabi-compat.c:347:2: error: #endif without #if
@ 2021-09-18 21:17 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-18 21:17 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5847 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head:   b148aaebca942e2fd79492a162e3b7b1f99cff6a
commit: 2f0ae9390e9939879900db53c0cbdcb224fe29f1 [45/282] ARM: 9109/1: oabi-compat: add epoll_pwait handler
config: arm-randconfig-c002-20210919 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/sashal/linux-stable.git/commit/?id=2f0ae9390e9939879900db53c0cbdcb224fe29f1
        git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-stable pending-5.10
        git checkout 2f0ae9390e9939879900db53c0cbdcb224fe29f1
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/kernel/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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:252:17: warning: no previous prototype for 'sys_oabi_epoll_ctl' [-Wmissing-prototypes]
     252 | asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
         |                 ^~~~~~~~~~~~~~~~~~
>> arch/arm/kernel/sys_oabi-compat.c:347:2: error: #endif without #if
     347 | #endif
         |  ^~~~~
   arch/arm/kernel/sys_oabi-compat.c:356:17: warning: no previous prototype for 'sys_oabi_semtimedop' [-Wmissing-prototypes]
     356 | asmlinkage long sys_oabi_semtimedop(int semid,
         |                 ^~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:399:17: warning: no previous prototype for 'sys_oabi_semop' [-Wmissing-prototypes]
     399 | asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
         |                 ^~~~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:405:16: warning: no previous prototype for 'sys_oabi_ipc' [-Wmissing-prototypes]
     405 | asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
         |                ^~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:423:17: warning: no previous prototype for 'sys_oabi_bind' [-Wmissing-prototypes]
     423 | asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen)
         |                 ^~~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:433:17: warning: no previous prototype for 'sys_oabi_connect' [-Wmissing-prototypes]
     433 | asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen)
         |                 ^~~~~~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:443:17: warning: no previous prototype for 'sys_oabi_sendto' [-Wmissing-prototypes]
     443 | asmlinkage long sys_oabi_sendto(int fd, void __user *buff,
         |                 ^~~~~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:456:17: warning: no previous prototype for 'sys_oabi_sendmsg' [-Wmissing-prototypes]
     456 | asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags)
         |                 ^~~~~~~~~~~~~~~~
   arch/arm/kernel/sys_oabi-compat.c:482:17: warning: no previous prototype for 'sys_oabi_socketcall' [-Wmissing-prototypes]
     482 | asmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args)
         |                 ^~~~~~~~~~~~~~~~~~~


vim +347 arch/arm/kernel/sys_oabi-compat.c

   322	
   323	/*
   324	 * Implement the event wait interface for the eventpoll file. It is the kernel
   325	 * part of the user space epoll_pwait(2).
   326	 */
   327	SYSCALL_DEFINE6(oabi_epoll_pwait, int, epfd,
   328			struct oabi_epoll_event __user *, events, int, maxevents,
   329			int, timeout, const sigset_t __user *, sigmask,
   330			size_t, sigsetsize)
   331	{
   332		int error;
   333	
   334		/*
   335		 * If the caller wants a certain signal mask to be set during the wait,
   336		 * we apply it here.
   337		 */
   338		error = set_user_sigmask(sigmask, sigsetsize);
   339		if (error)
   340			return error;
   341	
   342		error = do_oabi_epoll_wait(epfd, events, maxevents, timeout);
   343		restore_saved_sigmask_unless(error == -EINTR);
   344	
   345		return error;
   346	}
 > 347	#endif
   348	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31276 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-19 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-19 11:51 [sashal-stable:pending-5.10 45/282] arch/arm/kernel/sys_oabi-compat.c:347:2: error: #endif without #if kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-09-18 21:17 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.