syscalls: add comments show the define file for aio
PATCH 1/2 syscalls: add comments show the define file for aio
fs/aio.c define the syscalls for aio.
--- include/uapi/asm-generic/unistd.h | 1 + tools/include/uapi/asm-generic/unistd.h | 1 + 2 files changed, 2 insertions(+)
include/uapi/asm-generic/unistd.h +1 -0
@@ -30,6 +30,7 @@#define __SC_COMP_3264 (_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64)#endif +/* fs/aio.c */ #define __NR_io_setup 0 __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)#define __NR_io_destroy 1
tools/include/uapi/asm-generic/unistd.h +1 -0
@@ -30,6 +30,7 @@#define __SC_COMP_3264 (_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64)#endif +/* fs/aio.c */ #define __NR_io_setup 0 __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)#define __NR_io_destroy 1
Signature · 1 line
2.25.4
PATCH 2/2 syscalls: fix define file comments for lookup_dcookie
The define file for lookup_dcookie is fs/dcookies.c, not fs/cookies.c
--- include/uapi/asm-generic/unistd.h | 2 +- tools/include/uapi/asm-generic/unistd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/uapi/asm-generic/unistd.h +1 -1
@@ -74,7 +74,7 @@ __SYSCALL(__NR_fremovexattr, sys_fremovexattr)#define __NR_getcwd 17__SYSCALL (__NR_getcwd, sys_getcwd) -/* fs/cookies.c */ +/* fs/dcookies.c */#define __NR_lookup_dcookie 18__SC_COMP (__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie)
tools/include/uapi/asm-generic/unistd.h +1 -1
@@ -74,7 +74,7 @@ __SYSCALL(__NR_fremovexattr, sys_fremovexattr)#define __NR_getcwd 17__SYSCALL (__NR_getcwd, sys_getcwd) -/* fs/cookies.c */ +/* fs/dcookies.c */#define __NR_lookup_dcookie 18__SC_COMP (__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie)
Signature · 1 line
2.25.4
Quoted 4 lines · yangerkun
fs/aio.cdefine the syscalls for aio.Signed-off-by yangerkun <[email protected]>
This is obviously correct.
However, as Christoph Hellwig suggested the last time this came up for include/linux/syscalls.h, let's maybe just remove all those comments altogether.
What I really want to do with this file though, is to completely remove it altogether and replace it with a syscall.tbl file as we have it in the architectures that do not use the generic table.
If you or someone else wants to help out with that, I can point you to the last version of the proposed patches for that from a few years ago, and guide you through what else needs to be done before it can get merged.
Arnd