linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wang Zi-cheng <wzc@smail.nju.edu.cn>
To: linux-api@vger.kernel.org, akpm@linux-foundation.org
Cc: Wang Zi-cheng <wzc@smail.nju.edu.cn>
Subject: [PATCH] corrent sys_reboot annotation
Date: Fri, 30 Jul 2021 14:40:32 +0800	[thread overview]
Message-ID: <20210730064032.101113-1-wzc@smail.nju.edu.cn> (raw)

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  



             reply	other threads:[~2021-07-30  6:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30  6:40 Wang Zi-cheng [this message]
2021-07-30  6:54 ` [PATCH] corrent sys_reboot annotation Greg KH
     [not found]   ` <6103a3a5.1c69fb81.68c3a.0c9aSMTPIN_ADDED_BROKEN@mx.google.com>
2021-07-30  7:23     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210730064032.101113-1-wzc@smail.nju.edu.cn \
    --to=wzc@smail.nju.edu.cn \
    --cc=akpm@linux-foundation.org \
    --cc=linux-api@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).