[tip: timers/core] posix-timers: Add sys_ni_posix_timers() prototype

From: tip-bot2 for Arnd Bergmann
Date: Sun Jun 18 2023 - 16:50:10 EST


The following commit has been merged into the timers/core branch of tip:

Commit-ID: 892f439ea17cbf56a36e57c584d583649a64b404
Gitweb: https://git.kernel.org/tip/892f439ea17cbf56a36e57c584d583649a64b404
Author: Arnd Bergmann <arnd@xxxxxxxx>
AuthorDate: Wed, 07 Jun 2023 16:28:45 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitterDate: Sun, 18 Jun 2023 22:41:53 +02:00

posix-timers: 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]

Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20230607142925.3126422-1-arnd@xxxxxxxxxx

---
arch/alpha/kernel/osf_sys.c | 2 --
include/linux/syscalls.h | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index 2a9a877..d98701e 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -1014,8 +1014,6 @@ SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv,
return do_sys_settimeofday64(tv ? &kts : NULL, tz ? &ktz : NULL);
}

-asmlinkage long sys_ni_posix_timers(void);
-
SYSCALL_DEFINE2(osf_utimes, const char __user *, filename,
struct timeval32 __user *, tvs)
{
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 33a0ee3..24871f8 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -1280,6 +1280,7 @@ asmlinkage long sys_ni_syscall(void);

#endif /* CONFIG_ARCH_HAS_SYSCALL_WRAPPER */

+asmlinkage long sys_ni_posix_timers(void);

/*
* Kernel code should not call syscalls (i.e., sys_xyzyyz()) directly.