diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-06-07 16:28:45 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-09 17:44:25 -0700 |
commit | a94181ec064b3ad1b6f573f5953e2011f8c90292 (patch) | |
tree | d264cc0f50d0330680a84fd38ef782d0d4c64db3 /kernel | |
parent | f26799ffd6c7871aa0a1b8eeff2bd28258368cdb (diff) | |
download | linux-a94181ec064b3ad1b6f573f5953e2011f8c90292.tar.gz linux-a94181ec064b3ad1b6f573f5953e2011f8c90292.tar.bz2 linux-a94181ec064b3ad1b6f573f5953e2011f8c90292.zip |
syscalls: add sys_ni_posix_timers prototype
The sys_ni_posix_timers() definition causes a warning when the declaration
is missing, so this needs to be added along with the normal syscalls,
outside of the #ifdef.
kernel/time/posix-stubs.c:26:17: error: no previous prototype for 'sys_ni_posix_timers' [-Werror=missing-prototypes]
Link: https://lkml.kernel.org/r/20230607142925.3126422-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/posix-stubs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index 828aeecbd1e8..39769b2d1005 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c @@ -16,6 +16,7 @@ #include <linux/posix-timers.h> #include <linux/time_namespace.h> #include <linux/compat.h> +#include <linux/syscalls.h> #ifdef CONFIG_ARCH_HAS_SYSCALL_WRAPPER /* Architectures may override SYS_NI and COMPAT_SYS_NI */ |