syscalls: add sys_ni_posix_timers prototype
Subsystems (3)
PATCH 1/1 syscalls: add sys_ni_posix_timers prototype
From: Arnd Bergmann <[email protected]>
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]
---
I missed sending this out in the initial submission of my Wmissing-prototype patches
--- arch/alpha/kernel/osf_sys.c | 2 -- include/linux/syscalls.h | 1 + kernel/time/posix-stubs.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-)
arch/alpha/kernel/osf_sys.c +0 -2
@@ -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) {
include/linux/syscalls.h +1 -0
@@ -1286,6 +1286,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.
kernel/time/posix-stubs.c +1 -0
@@ -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 */
Signature · 1 line
2.39.2
Quoted 9 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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 <[email protected]>
Signature · 1 line
Kees Cook
Quoted 47 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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 <[email protected]>---
I missed sending this out in the initial submission of my Wmissing-prototype patches--- arch/alpha/kernel/osf_sys.c | 2 -- include/linux/syscalls.h | 1 + kernel/time/posix-stubs.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-)arch/alpha/kernel/osf_sys.c +0
-2@@ -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) {include/linux/syscalls.h +1
-0@@ -1286,6 +1286,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. kernel/time/posix-stubs.c +0
-0
kernel/time/posix-stubs.c line 19
Quoted 4 lines
kernel/time/posix-stubs.c +1
-0@@ -16,6 +16,7 @@#include <linux/posix-timers.h> #include <linux/time_namespace.h> #include <linux/compat.h> +#include <linux/syscalls.h>
That's already included. I'll fix it up while applying.
[tip: timers/core] posix-timers: Add sys_ni_posix_timers() prototype
In reply to Arnd BergmannThe following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: ad0334ffa4f9ae3dacfd89dae578df97f18a5203 Gitweb: https://git.kernel.org/tip/ad0334ffa4f9ae3dacfd89dae578df97f18a5203 Author: Arnd Bergmann <[email protected]> AuthorDate: Wed, 07 Jun 2023 16:28:45 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Sat, 10 Jun 2023 17:57:30 +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]
--- arch/alpha/kernel/osf_sys.c | 2 -- include/linux/syscalls.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-)
arch/alpha/kernel/osf_sys.c +0 -2
@@ -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) {
include/linux/syscalls.h +1 -0
@@ -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.
[tip: timers/core] posix-timers: Add sys_ni_posix_timers() prototype
In reply to Arnd BergmannThe following commit has been merged into the timers/core branch of tip:
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 <[email protected]> AuthorDate: Wed, 07 Jun 2023 16:28:45 +02:00 Committer: Thomas Gleixner <[email protected]> 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]
--- arch/alpha/kernel/osf_sys.c | 2 -- include/linux/syscalls.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-)
arch/alpha/kernel/osf_sys.c +0 -2
@@ -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) {
include/linux/syscalls.h +1 -0
@@ -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.