• Arnd Bergmann's avatar
    s390: syscall_wrapper: avoid clang warning · efb150df
    Arnd Bergmann authored
    Building system calls with clang results in a warning
    about an alias from a global function to a static one:
    
    ../fs/namei.c:3847:1: warning: unused function '__se_sys_mkdirat' [-Wunused-function]
    SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode)
    ^
    ../include/linux/syscalls.h:219:36: note: expanded from macro 'SYSCALL_DEFINE3'
     #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                       ^
    ../include/linux/syscalls.h:228:2: note: expanded from macro 'SYSCALL_DEFINEx'
            __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
            ^
    ../arch/s390/include/asm/syscall_wrapper.h:126:18: note: expanded from macro '__SYSCALL_DEFINEx'
            asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__))          \
                            ^
    <scratch space>:31:1: note: expanded from here
    __se_sys_mkdirat
    ^
    
    The only reference to the static __se_sys_mkdirat() here is the alias, but
    this only gets evaluated later. Making this function global as well avoids
    the warning.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    efb150df
syscall_wrapper.h 4.68 KB