]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
syscalls.h: add forward declarations for inplace syscall wrappers
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 11 Sep 2013 21:23:28 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:25 +0000 (15:58 -0700)
commitf9597f24c089dcbddbd2d9e99fbf00df57fb70c6
treec7aa5c1ab542839a07bafff202dc4c68e8f3486f
parente656a634118285142063527b2cd40c749036de82
syscalls.h: add forward declarations for inplace syscall wrappers

Unclutter -Wmissing-prototypes warning types (enabled at make W=1)

    linux/include/linux/syscalls.h:190:18: warning: no previous prototype for 'SyS_semctl' [-Wmissing-prototypes]
      asmlinkage long SyS##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
                      ^
    linux/include/linux/syscalls.h:183:2: note: in expansion of macro '__SYSCALL_DEFINEx'
      __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
      ^
by adding forward declarations right before definitions.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compat.h
include/linux/syscalls.h