Skip to content

Commit 892f439

Browse files
arndbKAGA-KOKO
authored andcommitted
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@arndb.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20230607142925.3126422-1-arnd@kernel.org
1 parent a7e282c commit 892f439

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/alpha/kernel/osf_sys.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,6 @@ SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv,
10141014
return do_sys_settimeofday64(tv ? &kts : NULL, tz ? &ktz : NULL);
10151015
}
10161016

1017-
asmlinkage long sys_ni_posix_timers(void);
1018-
10191017
SYSCALL_DEFINE2(osf_utimes, const char __user *, filename,
10201018
struct timeval32 __user *, tvs)
10211019
{

include/linux/syscalls.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,7 @@ asmlinkage long sys_ni_syscall(void);
12801280

12811281
#endif /* CONFIG_ARCH_HAS_SYSCALL_WRAPPER */
12821282

1283+
asmlinkage long sys_ni_posix_timers(void);
12831284

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

0 commit comments

Comments
 (0)