From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [182.253.183.240]) by gnuweeb.org (Postfix) with ESMTPSA id 9BDE581712; Thu, 24 Nov 2022 08:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1669276888; bh=/UbXrvHQTICdm47XpD4CYl+mOolYdxyIGwcPMlD4uQ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aWY3iAujm39Y04NEbU9X9BPAjqaQ9dQ0+EuS5d5UuXtO3ABggVI6SCJx7JuDFVp/j UDEKtjSqNeyle5uhNJXbj+6V+tbQYZcdvvE+BCxCF8K0HfJpsY1jnAq+0EktsgFACH +4TakGUpKlyfWshfo0Pf6r/E3D5ev0M7qrTCfQFWVOXFgWmBB571Nqp2OJd9UOr1P2 67WW2iuB39ta2vldR5HOHWiaBijx+WxqHg7faEfHCztlO4ZsL3Lhiy4u1QX6CV63Yr Z/zwpXYhfkPBNgvVfWPLFzkuWg8CIQfWF1S3x6PcMSeHY7taq7767U8xLYTW+12YpY murQWK/JNxsHw== From: Ammar Faizi To: Jens Axboe Cc: Ammar Faizi , Pavel Begunkov , io-uring Mailing List , GNU/Weeb Mailing List , Gilang Fachrezy , Muhammad Rizki , Alviro Iskandar Setiawan , VNLX Kernel Department Subject: [PATCH liburing v1 1/7] liburing.h: Export `__io_uring_flush_sq()` function Date: Thu, 24 Nov 2022 15:00:56 +0700 Message-Id: <20221124075846.3784701-2-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124075846.3784701-1-ammar.faizi@intel.com> References: <20221124075846.3784701-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi clang says: queue.c:204:10: error: no previous prototype for function \ '__io_uring_flush_sq' [-Werror,-Wmissing-prototypes] \ unsigned __io_uring_flush_sq(struct io_uring *ring) ^ queue.c:204:1: note: declare 'static' if the function is not intended \ to be used outside of this translation unit \ unsigned __io_uring_flush_sq(struct io_uring *ring) This function is used by test/iopoll.c, therefore, it can't be static. Export it. Signed-off-by: Ammar Faizi --- src/include/liburing.h | 1 + src/liburing.map | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/include/liburing.h b/src/include/liburing.h index 12a703f..c1d8edb 100644 --- a/src/include/liburing.h +++ b/src/include/liburing.h @@ -237,6 +237,7 @@ int io_uring_register_file_alloc_range(struct io_uring *ring, int io_uring_get_events(struct io_uring *ring); int io_uring_submit_and_get_events(struct io_uring *ring); +unsigned __io_uring_flush_sq(struct io_uring *ring); /* * io_uring syscalls. diff --git a/src/liburing.map b/src/liburing.map index 06c64f8..6b2f4b2 100644 --- a/src/liburing.map +++ b/src/liburing.map @@ -67,3 +67,8 @@ LIBURING_2.3 { io_uring_get_events; io_uring_submit_and_get_events; } LIBURING_2.2; + +LIBURING_2.4 { + global: + __io_uring_flush_sq; +} LIBURING_2.3; -- Ammar Faizi