[PATCH] corrent sys_reboot annotation

Subsystems: abi/api, the rest

STALE1830d

2 messages, 2 authors, 2021-07-30 · open the first message on its own page

[PATCH] corrent sys_reboot annotation

From: Wang Zi-cheng <hidden>
Date: 2021-07-30 06:39:53

Signed-off-by: Wang Zi-cheng <redacted>
---
 include/linux/syscalls.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 586128d5c3b8..68746eec0092 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -735,11 +735,14 @@ asmlinkage long sys_rt_sigtimedwait_time32(const sigset_t __user *uthese,
 				size_t sigsetsize);
 asmlinkage long sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo);
 
+/* kernel/reboot.c */
+asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd,
+				void __user *arg);
+
 /* kernel/sys.c */
 asmlinkage long sys_setpriority(int which, int who, int niceval);
 asmlinkage long sys_getpriority(int which, int who);
-asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd,
-				void __user *arg);
+
 asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
 asmlinkage long sys_setgid(gid_t gid);
 asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
-- 
2.32.0

--------------

sys_reboot is in kernel/reboot.c not kernel/sys.c  

Re: [PATCH] corrent sys_reboot annotation

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2021-07-30 06:54:32

On Fri, Jul 30, 2021 at 02:40:32PM +0800, Wang Zi-cheng wrote:
Signed-off-by: Wang Zi-cheng <redacted>
You forgot a changelog text :(
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help