[PATCH 1/2] Move semicolon to SYMVER and DEFSYMVER call sites
authorGuillem Jover <guillem@hadrons.org>
Tue, 2 Nov 2021 23:20:50 +0000 (00:20 +0100)
committerGuillem Jover <guillem@debian.org>
Tue, 2 Nov 2021 23:56:45 +0000 (23:56 +0000)
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 <guillem@hadrons.org>
Gbp-Pq: Name 0001-Move-semicolon-to-SYMVER-and-DEFSYMVER-call-sites.patch

src/io_cancel.c
src/io_getevents.c
src/io_queue_wait.c
src/syscall.h

index 2f0f5f4aa0d4c4f9a6588a5e9e5e0e14a44b629b..441806db04eec6d783fd6d5a22de1628807fd059 100644 (file)
@@ -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);
index 90d60818c6c39e928d483893bfcce202a9f3a662..88d285acbfb4c1d76382e5f9d375f4b864e2b24f 100644 (file)
@@ -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);
index 538d2f3b7bfd35f060cc32dcd4b4731999f9ef13..6f69a51f5f72b6e38c0df8ede5687f0d98966caf 100644 (file)
@@ -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);
index b86d7457ec42416749e638cfaef4228cf53d13ac..31d440df3a277087328c4ecbf61c36e61d70639f 100644 (file)
@@ -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"