All of lore.kernel.org
 help / color / mirror / Atom feed
* [vfs:misc.ppc 3/6] include/linux/syscalls.h:206:18: error: conflicting types for 'sys_rt_sigreturn'
@ 2018-04-16  5:52 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-04-16  5:52 UTC (permalink / raw)
  To: Al Viro; +Cc: kbuild-all, linux-fsdevel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git misc.ppc
head:   448bb0dbed3c04de32b68d5e66a5dd00ef2fdb6b
commit: 167c8216358d558928a38ebbc64d0f6ee239ac3c [3/6] ppc: signal_32 - switch to {COMPAT_,}SYSCALL_DEFINE
config: powerpc-walnut_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 167c8216358d558928a38ebbc64d0f6ee239ac3c
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All error/warnings (new ones prefixed by >>):

   In file included from arch/powerpc/kernel/signal_32.c:29:0:
>> include/linux/syscalls.h:206:18: error: conflicting types for 'sys_rt_sigreturn'
     asmlinkage long sys_##sname(void);   \
                     ^
>> arch/powerpc/kernel/signal_32.c:1139:1: note: in expansion of macro 'SYSCALL_DEFINE0'
    SYSCALL_DEFINE0(rt_sigreturn)
    ^~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:56:0:
   arch/powerpc/kernel/signal.h:52:13: note: previous declaration of 'sys_rt_sigreturn' was here
    extern long sys_rt_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
                ^~~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:29:0:
   include/linux/syscalls.h:208:18: error: conflicting types for 'sys_rt_sigreturn'
     asmlinkage long sys_##sname(void)
                     ^
>> arch/powerpc/kernel/signal_32.c:1139:1: note: in expansion of macro 'SYSCALL_DEFINE0'
    SYSCALL_DEFINE0(rt_sigreturn)
    ^~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:56:0:
   arch/powerpc/kernel/signal.h:52:13: note: previous declaration of 'sys_rt_sigreturn' was here
    extern long sys_rt_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
                ^~~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:29:0:
>> include/linux/syscalls.h:233:18: error: conflicting types for 'sys_debug_setcontext'
     asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
                     ^
   include/linux/syscalls.h:222:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
    #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                       ^~~~~~~~~~~~~~~
>> arch/powerpc/kernel/signal_32.c:1232:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx,
    ^~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:47:0:
   arch/powerpc/include/asm/asm-prototypes.h:88:5: note: previous declaration of 'sys_debug_setcontext' was here
    int sys_debug_setcontext(struct ucontext __user *ctx,
        ^~~~~~~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:29:0:
   include/linux/syscalls.h:206:18: error: conflicting types for 'sys_sigreturn'
     asmlinkage long sys_##sname(void);   \
                     ^
   arch/powerpc/kernel/signal_32.c:1429:1: note: in expansion of macro 'SYSCALL_DEFINE0'
    SYSCALL_DEFINE0(sigreturn)
    ^~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:56:0:
   arch/powerpc/kernel/signal.h:54:13: note: previous declaration of 'sys_sigreturn' was here
    extern long sys_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
                ^~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:29:0:
   include/linux/syscalls.h:208:18: error: conflicting types for 'sys_sigreturn'
     asmlinkage long sys_##sname(void)
                     ^
   arch/powerpc/kernel/signal_32.c:1429:1: note: in expansion of macro 'SYSCALL_DEFINE0'
    SYSCALL_DEFINE0(sigreturn)
    ^~~~~~~~~~~~~~~
   In file included from arch/powerpc/kernel/signal_32.c:56:0:
   arch/powerpc/kernel/signal.h:54:13: note: previous declaration of 'sys_sigreturn' was here
    extern long sys_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
                ^~~~~~~~~~~~~

vim +/sys_rt_sigreturn +206 include/linux/syscalls.h

bed1ffca0 Frederic Weisbecker 2009-03-13  202  
1bd21c6c2 Dominik Brodowski   2018-04-05  203  #ifndef SYSCALL_DEFINE0
bed1ffca0 Frederic Weisbecker 2009-03-13  204  #define SYSCALL_DEFINE0(sname)					\
99e621f79 Al Viro             2013-03-05  205  	SYSCALL_METADATA(_##sname, 0);				\
c9a211951 Howard McLauchlan   2018-03-21 @206  	asmlinkage long sys_##sname(void);			\
c9a211951 Howard McLauchlan   2018-03-21  207  	ALLOW_ERROR_INJECTION(sys_##sname, ERRNO);		\
bed1ffca0 Frederic Weisbecker 2009-03-13  208  	asmlinkage long sys_##sname(void)
1bd21c6c2 Dominik Brodowski   2018-04-05  209  #endif /* SYSCALL_DEFINE0 */
bed1ffca0 Frederic Weisbecker 2009-03-13  210  
6c5979631 Heiko Carstens      2009-02-11  211  #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
6c5979631 Heiko Carstens      2009-02-11  212  #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
6c5979631 Heiko Carstens      2009-02-11  213  #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
6c5979631 Heiko Carstens      2009-02-11  214  #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
6c5979631 Heiko Carstens      2009-02-11  215  #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
6c5979631 Heiko Carstens      2009-02-11  216  #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__)
1a94bc347 Heiko Carstens      2009-01-14  217  
609320c8a Yonghong Song       2017-09-07  218  #define SYSCALL_DEFINE_MAXARGS	6
609320c8a Yonghong Song       2017-09-07  219  
bed1ffca0 Frederic Weisbecker 2009-03-13  220  #define SYSCALL_DEFINEx(x, sname, ...)				\
99e621f79 Al Viro             2013-03-05  221  	SYSCALL_METADATA(sname, x, __VA_ARGS__)			\
bed1ffca0 Frederic Weisbecker 2009-03-13  222  	__SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
bed1ffca0 Frederic Weisbecker 2009-03-13  223  
2cf096668 Al Viro             2013-01-21  224  #define __PROTECT(...) asmlinkage_protect(__VA_ARGS__)
1bd21c6c2 Dominik Brodowski   2018-04-05  225  
e145242ea Dominik Brodowski   2018-04-09  226  /*
e145242ea Dominik Brodowski   2018-04-09  227   * The asmlinkage stub is aliased to a function named __se_sys_*() which
e145242ea Dominik Brodowski   2018-04-09  228   * sign-extends 32-bit ints to longs whenever needed. The actual work is
e145242ea Dominik Brodowski   2018-04-09  229   * done within __do_sys_*().
e145242ea Dominik Brodowski   2018-04-09  230   */
1bd21c6c2 Dominik Brodowski   2018-04-05  231  #ifndef __SYSCALL_DEFINEx
bed1ffca0 Frederic Weisbecker 2009-03-13  232  #define __SYSCALL_DEFINEx(x, name, ...)					\
83460ec8d Andi Kleen          2013-11-12 @233  	asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))	\
e145242ea Dominik Brodowski   2018-04-09  234  		__attribute__((alias(__stringify(__se_sys##name))));	\
c9a211951 Howard McLauchlan   2018-03-21  235  	ALLOW_ERROR_INJECTION(sys##name, ERRNO);			\
e145242ea Dominik Brodowski   2018-04-09  236  	static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
e145242ea Dominik Brodowski   2018-04-09  237  	asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__));	\
e145242ea Dominik Brodowski   2018-04-09  238  	asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__))	\
1a94bc347 Heiko Carstens      2009-01-14  239  	{								\
e145242ea Dominik Brodowski   2018-04-09  240  		long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
07fe6e00f Al Viro             2013-01-21  241  		__MAP(x,__SC_TEST,__VA_ARGS__);				\
2cf096668 Al Viro             2013-01-21  242  		__PROTECT(x, ret,__MAP(x,__SC_ARGS,__VA_ARGS__));	\
2cf096668 Al Viro             2013-01-21  243  		return ret;						\
1a94bc347 Heiko Carstens      2009-01-14  244  	}								\
e145242ea Dominik Brodowski   2018-04-09  245  	static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
1bd21c6c2 Dominik Brodowski   2018-04-05  246  #endif /* __SYSCALL_DEFINEx */
1a94bc347 Heiko Carstens      2009-01-14  247  

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

:::::: TO: Howard McLauchlan <hmclauchlan@fb.com>
:::::: CC: Dominik Brodowski <linux@dominikbrodowski.net>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-16  5:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16  5:52 [vfs:misc.ppc 3/6] include/linux/syscalls.h:206:18: error: conflicting types for 'sys_rt_sigreturn' kbuild 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.