linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] corrent sys_reboot annotation
@ 2021-07-30  6:40 Wang Zi-cheng
  2021-07-30  6:54 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Zi-cheng @ 2021-07-30  6:40 UTC (permalink / raw)
  To: linux-api, akpm; +Cc: Wang Zi-cheng

Signed-off-by: Wang Zi-cheng <wzc@smail.nju.edu.cn>
---
 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  



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-30  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-30  6:40 [PATCH] corrent sys_reboot annotation Wang Zi-cheng
2021-07-30  6:54 ` Greg KH
     [not found]   ` <6103a3a5.1c69fb81.68c3a.0c9aSMTPIN_ADDED_BROKEN@mx.google.com>
2021-07-30  7:23     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).