[arnd-asm-generic:syscall-tbl-6.11 95/98] include/linux/syscalls.h:210:25: error: conflicting types for 'sys_mips_pipe'; have 'long int(void)'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arnd,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git syscall-tbl-6.11
head:   9a99991d90521113a738c2a4761a4147fe4b31ca
commit: baef720c972546254f0900c4e7e83916cab2ba61 [95/98] mips sysm_pipe
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20240718/202407180721.r42zYOeD-lkp@xxxxxxxxx/config)
compiler: mips-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407180721.r42zYOeD-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407180721.r42zYOeD-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from arch/mips/kernel/syscall.c:17:
>> include/linux/syscalls.h:210:25: error: conflicting types for 'sys_mips_pipe'; have 'long int(void)'
     210 |         asmlinkage long sys_##sname(void);                      \
         |                         ^~~~
   arch/mips/kernel/syscall.c:52:1: note: in expansion of macro 'SYSCALL_DEFINE0'
      52 | SYSCALL_DEFINE0(mips_pipe)
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/syscalls.h:84:
   arch/mips/include/asm/syscalls.h:24:16: note: previous declaration of 'sys_mips_pipe' with type 'int(void)'
      24 | asmlinkage int sys_mips_pipe(void);
         |                ^~~~~~~~~~~~~
   include/linux/syscalls.h:212:25: error: conflicting types for 'sys_mips_pipe'; have 'long int(void)'
     212 |         asmlinkage long sys_##sname(void)
         |                         ^~~~
   arch/mips/kernel/syscall.c:52:1: note: in expansion of macro 'SYSCALL_DEFINE0'
      52 | SYSCALL_DEFINE0(mips_pipe)
         | ^~~~~~~~~~~~~~~
   arch/mips/include/asm/syscalls.h:24:16: note: previous declaration of 'sys_mips_pipe' with type 'int(void)'
      24 | asmlinkage int sys_mips_pipe(void);
         |                ^~~~~~~~~~~~~


vim +210 include/linux/syscalls.h

bed1ffca022cc8 Frederic Weisbecker 2009-03-13  206  
1bd21c6c21e848 Dominik Brodowski   2018-04-05  207  #ifndef SYSCALL_DEFINE0
bed1ffca022cc8 Frederic Weisbecker 2009-03-13  208  #define SYSCALL_DEFINE0(sname)					\
99e621f796d7f0 Al Viro             2013-03-05  209  	SYSCALL_METADATA(_##sname, 0);				\
c9a211951c7c79 Howard McLauchlan   2018-03-21 @210  	asmlinkage long sys_##sname(void);			\
c9a211951c7c79 Howard McLauchlan   2018-03-21  211  	ALLOW_ERROR_INJECTION(sys_##sname, ERRNO);		\
bed1ffca022cc8 Frederic Weisbecker 2009-03-13  212  	asmlinkage long sys_##sname(void)
1bd21c6c21e848 Dominik Brodowski   2018-04-05  213  #endif /* SYSCALL_DEFINE0 */
bed1ffca022cc8 Frederic Weisbecker 2009-03-13  214  

:::::: The code at line 210 was first introduced by commit
:::::: c9a211951c7c79cfb5de888d7d9550872868b086 bpf: whitelist all syscalls for error injection

:::::: TO: Howard McLauchlan <hmclauchlan@xxxxxx>
:::::: CC: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux