From: Guillem Jover Date: Tue, 2 Nov 2021 23:20:50 +0000 (+0100) Subject: [PATCH 1/2] Move semicolon to SYMVER and DEFSYMVER call sites X-Git-Tag: archive/raspbian/0.3.112-13+rpi1~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9a282928a4777bcb54707f9f868b5dae3795c4e9;p=libaio.git [PATCH 1/2] Move semicolon to SYMVER and DEFSYMVER call sites These look like function macros, so let's unify their call sites to use function syntax with a final semicolon. Signed-off-by: Guillem Jover Gbp-Pq: Name 0001-Move-semicolon-to-SYMVER-and-DEFSYMVER-call-sites.patch --- diff --git a/src/io_cancel.c b/src/io_cancel.c index 2f0f5f4..441806d 100644 --- a/src/io_cancel.c +++ b/src/io_cancel.c @@ -20,4 +20,4 @@ #include "syscall.h" io_syscall3(int, io_cancel_0_4, io_cancel, io_context_t, ctx, struct iocb *, iocb, struct io_event *, event) -DEFSYMVER(io_cancel_0_4, io_cancel, 0.4) +DEFSYMVER(io_cancel_0_4, io_cancel, 0.4); diff --git a/src/io_getevents.c b/src/io_getevents.c index 90d6081..88d285a 100644 --- a/src/io_getevents.c +++ b/src/io_getevents.c @@ -32,4 +32,4 @@ int io_getevents_0_4(io_context_t ctx, long min_nr, long nr, struct io_event * e return __io_getevents_0_4(ctx, min_nr, nr, events, timeout); } -DEFSYMVER(io_getevents_0_4, io_getevents, 0.4) +DEFSYMVER(io_getevents_0_4, io_getevents, 0.4); diff --git a/src/io_queue_wait.c b/src/io_queue_wait.c index 538d2f3..6f69a51 100644 --- a/src/io_queue_wait.c +++ b/src/io_queue_wait.c @@ -28,4 +28,4 @@ int io_queue_wait_0_4(io_context_t ctx, struct timespec *timeout) { return io_getevents(ctx, 0, 0, NULL, timeout); } -DEFSYMVER(io_queue_wait_0_4, io_queue_wait, 0.4) +DEFSYMVER(io_queue_wait_0_4, io_queue_wait, 0.4); diff --git a/src/syscall.h b/src/syscall.h index b86d745..31d440d 100644 --- a/src/syscall.h +++ b/src/syscall.h @@ -6,10 +6,10 @@ #define SYMSTR(str) _SYMSTR(str) #define SYMVER(compat_sym, orig_sym, ver_sym) \ - __asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@LIBAIO_" SYMSTR(ver_sym)); + __asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@LIBAIO_" SYMSTR(ver_sym)) #define DEFSYMVER(compat_sym, orig_sym, ver_sym) \ - __asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@@LIBAIO_" SYMSTR(ver_sym)); + __asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@@LIBAIO_" SYMSTR(ver_sym)) #if defined(__i386__) #include "syscall-i386.h"