diff mbox series

arch/generic: Rename `____sys_io_uring*` to `__sys_io_uring*`

Message ID 20220721155139.760436-1-ammarfaizi2@gnuweeb.org (mailing list archive)
State New
Headers show
Series arch/generic: Rename `____sys_io_uring*` to `__sys_io_uring*` | expand

Commit Message

Ammar Faizi July 21, 2022, 3:51 p.m. UTC
In commit:

  4aa1a8aefc3dc3875621c64cef0087968e57181d ("Delete src/syscall.c and get back to use __sys_io_uring* functions")

I forgot to rename `____sys_io_uring*` to `__sys_io_uring*` in
arch/generic. This results in build error on archs other than
aarch64 and x86-64:

  error: implicit declaration of function `__sys_io_uring*`;

Rename `____sys_io_uring*` to `__sys_io_uring*`.
Thanks to the GitHub bot who spotted the issue quickly!

Fixes: 4aa1a8aefc3dc3875621c64cef0087968e57181d ("Delete src/syscall.c and get back to use __sys_io_uring* functions")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---
 src/arch/generic/syscall.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Comments

Jens Axboe July 21, 2022, 3:59 p.m. UTC | #1
On Thu, 21 Jul 2022 22:51:38 +0700, Ammar Faizi wrote:
> In commit:
> 
>   4aa1a8aefc3dc3875621c64cef0087968e57181d ("Delete src/syscall.c and get back to use __sys_io_uring* functions")
> 
> I forgot to rename `____sys_io_uring*` to `__sys_io_uring*` in
> arch/generic. This results in build error on archs other than
> aarch64 and x86-64:
> 
> [...]

Applied, thanks!

[1/1] arch/generic: Rename `____sys_io_uring*` to `__sys_io_uring*`
      commit: 441d376c3c1abccd92d1ba6a5ceb343a4683a434

Best regards,
diff mbox series

Patch

diff --git a/src/arch/generic/syscall.h b/src/arch/generic/syscall.h
index e637890..5a172e1 100644
--- a/src/arch/generic/syscall.h
+++ b/src/arch/generic/syscall.h
@@ -5,25 +5,25 @@ 
 
 #include <fcntl.h>
 
-static inline int ____sys_io_uring_register(int fd, unsigned opcode,
-					    const void *arg, unsigned nr_args)
+static inline int __sys_io_uring_register(int fd, unsigned opcode,
+					  const void *arg, unsigned nr_args)
 {
 	int ret;
 	ret = syscall(__NR_io_uring_register, fd, opcode, arg, nr_args);
 	return (ret < 0) ? -errno : ret;
 }
 
-static inline int ____sys_io_uring_setup(unsigned entries,
-					 struct io_uring_params *p)
+static inline int __sys_io_uring_setup(unsigned entries,
+				       struct io_uring_params *p)
 {
 	int ret;
 	ret = syscall(__NR_io_uring_setup, entries, p);
 	return (ret < 0) ? -errno : ret;
 }
 
-static inline int ____sys_io_uring_enter2(int fd, unsigned to_submit,
-					  unsigned min_complete, unsigned flags,
-					  sigset_t *sig, int sz)
+static inline int __sys_io_uring_enter2(int fd, unsigned to_submit,
+					unsigned min_complete, unsigned flags,
+					sigset_t *sig, int sz)
 {
 	int ret;
 	ret = syscall(__NR_io_uring_enter, fd, to_submit, min_complete, flags,
@@ -31,12 +31,12 @@  static inline int ____sys_io_uring_enter2(int fd, unsigned to_submit,
 	return (ret < 0) ? -errno : ret;
 }
 
-static inline int ____sys_io_uring_enter(int fd, unsigned to_submit,
-					 unsigned min_complete, unsigned flags,
-					 sigset_t *sig)
+static inline int __sys_io_uring_enter(int fd, unsigned to_submit,
+				       unsigned min_complete, unsigned flags,
+				       sigset_t *sig)
 {
-	return ____sys_io_uring_enter2(fd, to_submit, min_complete, flags, sig,
-				       _NSIG / 8);
+	return __sys_io_uring_enter2(fd, to_submit, min_complete, flags, sig,
+				     _NSIG / 8);
 }
 
 static inline int __sys_open(const char *pathname, int flags, mode_t mode)