# \[PATCH\] corrent sys\_reboot annotation

- Subsystems: ABI/API, THE REST
- Maintainers: Linus Torvalds
- List: linux-api
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-api/2021/07/13330085/t

## \[PATCH\] corrent sys\_reboot annotation

- From: Wang Zi-cheng \<hidden\>
- Date: 2021-07-30 06:39:53 
- Message: https://ratatoskr.run/linux-api/2021/07/13330085.md

```text
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 
- Message: https://ratatoskr.run/linux-api/2021/07/13330086.md

```text
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 :(
```
