From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2493EC433FE for ; Thu, 24 Nov 2022 16:29:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229471AbiKXQ3Q (ORCPT ); Thu, 24 Nov 2022 11:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiKXQ3P (ORCPT ); Thu, 24 Nov 2022 11:29:15 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876B316FB29 for ; Thu, 24 Nov 2022 08:29:14 -0800 (PST) Received: from localhost.localdomain (unknown [182.253.183.240]) by gnuweeb.org (Postfix) with ESMTPSA id 2093B81725; Thu, 24 Nov 2022 16:29:09 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1669307353; bh=xUoq7jSYmhCi5dD6XeBErKJG85TRqcqSzPvRBo89GyI=; h=From:To:Cc:Subject:Date:From; b=cAAU79bEdDApRpb7CWFJXFZqscrNgD470/SlYJKgsZl68fYBE4w3b+XJt0oRRRs2e CYHrl57RXWlGi9JmX4MDQijjs4HH0kj7dlpCRQaZaHLqgz6f/iYiempvHTgvYAAPAU qTFsKdUnaRkvxR7HeZwDoB7aV0Cb75P7VQzL6Mo8xVVrIrBn27l23UGwBxjWs5XZBz zqIX8J4eXg5vlXL8QehWTjdqG8JRBNVrlLTJcysMj7qdH/TbjD4T48aH/3akq5w7bV SfDQb8Tn7UgUKmKmbuICToSagF3nzd2gl2iWZemX8kLvhzW4ZnP2SN+BWShpMuvwV3 n7/y+xA0Jq70w== From: Ammar Faizi To: Jens Axboe Cc: Ammar Faizi , Dylan Yudaken , Pavel Begunkov , Gilang Fachrezy , Muhammad Rizki , Alviro Iskandar Setiawan , VNLX Kernel Department , io-uring Mailing List , GNU/Weeb Mailing List Subject: [PATCH liburing v2 0/8] Ensure we mark non-exported functions and variables as static Date: Thu, 24 Nov 2022 23:28:53 +0700 Message-Id: <20221124162633.3856761-1-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Ammar Faizi Hi Jens, This is a v2 revision. This series is a -Wmissing-prototypes enforcement. -Wmissing-prototypes is a clang C compiler flag that warns us if we have functions or variables that are not used outisde the translation unit, but not marked as static. There are 8 patches in this series: - Patch #1, is just a typo cleanup. - Patch #2, core library change, mark __io_uring_flush_sq() as static. - Patch #3 to patch #7 are the cleanup preparation for -Wmissing-prototypes enforcement. - Patch #8 is to enforce -Wmissing-prototypes on the GitHub CI robot. This series has been build-tested each patch with the GitHub CI robot and no breakage is found. ## Changelog v2: - Add a new patch #1, fix typo. - Don't export __io_uring_flush_sq(). Instead, make a copy of this function in test/helpers.c. - Massage the commit message. Signed-off-by: Ammar Faizi --- Ammar Faizi (8): queue: Fix typo "entererd" -> "entered" queue: Mark `__io_uring_flush_sq()` as static test/io_uring_setup: Remove unused functions ucontext-cp: Remove an unused function tests: Mark non-exported functions as static ucontext-cp: Mark a non-exported function as static test/Makefile: Omit `-Wmissing-prototypes` from the C++ compiler flags github: Add `-Wmissing-prototypes` for GitHub CI bot .github/workflows/build.yml | 7 ++-- examples/ucontext-cp.c | 19 +-------- src/queue.c | 4 +- test/Makefile | 11 ++++- test/accept-link.c | 2 +- test/accept-reuse.c | 9 ++-- test/ce593a6c480a.c | 4 +- test/defer-taskrun.c | 2 +- test/exit-no-cleanup.c | 2 +- test/hardlink.c | 2 +- test/helpers.c | 33 +++++++++++++++ test/helpers.h | 2 + test/io_uring_passthrough.c | 2 - test/io_uring_setup.c | 83 ++----------------------------------- test/iopoll.c | 2 - test/link_drain.c | 2 +- test/multicqes_drain.c | 27 +++++++----- test/nvme.h | 3 +- test/poll-link.c | 2 +- test/poll-mshot-overflow.c | 2 +- test/read-before-exit.c | 2 +- test/ring-leak2.c | 2 +- test/sq-poll-kthread.c | 2 +- test/sqpoll-cancel-hang.c | 2 +- test/symlink.c | 3 +- test/timeout-new.c | 12 ++++-- 26 files changed, 101 insertions(+), 142 deletions(-) base-commit: 636b6bdaa8d84f1b5318e27d1e4ffa86361ae66d -- Ammar Faizi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26611C4332F for ; Mon, 12 Dec 2022 12:49:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232290AbiLLMtU (ORCPT ); Mon, 12 Dec 2022 07:49:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231462AbiLLMtU (ORCPT ); Mon, 12 Dec 2022 07:49:20 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 785ECCC2 for ; Mon, 12 Dec 2022 04:49:19 -0800 (PST) Received: from localhost.localdomain (unknown [182.253.183.130]) by gnuweeb.org (Postfix) with ESMTPSA id E350C8060C; Mon, 12 Dec 2022 12:49:16 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1670849358; bh=L4DAuy9QEuLloxUWvI4Fq15R5BWulmfOXVpjFL7WRhw=; h=From:To:Cc:Subject:Date:From; b=P91aL1VhrSTjaaI5UOOmbggW5jJPVL+AT06DueEF1WwIlitskrq9zVc+NH9wBDgUh ClwHwECxeT+wl8t914kk84i8IVsFrDRreCJTN+NjMTcq/pubZTCplJ8lnSxc341OMe WsERtM5SVzzVyHYvNDHX6SUlscSLkmdpy5ATzkpfOxKQSpx169g4VR4P5bAdTHGlhC Z6mqBafFoESqsuMtMkKKENmjR5F+b3LZSWRd0UnvOLgXygpMzgSDG4//P+/e4OYO3r Vaqs9z6GPPHMN8AcGVyHHqfRT9d3AojJXdICxi443dmoQJnBADOFEzQ6goPUbJqsKy 9cV6jjKohzvnA== From: Ammar Faizi To: Jens Axboe Cc: io-uring Mailing List , Ammar Faizi , Nicolai Stange , Yuriy Chernyshov Subject: [PATCH] test/sendmsg_fs_cve: Fix the wrong SPDX-License-Identifier Date: Mon, 12 Dec 2022 19:48:57 +0700 Message-ID: <20221124162633.3856761-1-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Message-ID: <20221212124857.atCSNbq9bwMrO3RhTk2I4ld4PghCMDC2DjDRHJXfUvo@z> From: Ammar Faizi This test program's license is GPL-2.0-or-later, but I put the wrong SPDX-License-Identifier in commit: d36db0b72b9 ("test: Add missing SPDX-License-Identifier") Fix it. Cc: Nicolai Stange Reported-by: Yuriy Chernyshov Fixes: https://github.com/axboe/liburing/issues/753 Fixes: d36db0b72b9399623dee12b61069845d8e1bfa05 ("test: Add missing SPDX-License-Identifier") Signed-off-by: Ammar Faizi --- test/sendmsg_fs_cve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sendmsg_fs_cve.c b/test/sendmsg_fs_cve.c index 2ce3114..9e444d7 100644 --- a/test/sendmsg_fs_cve.c +++ b/test/sendmsg_fs_cve.c @@ -1,11 +1,11 @@ -/* SPDX-License-Identifier: MIT */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * repro-CVE-2020-29373 -- Reproducer for CVE-2020-29373. * * Copyright (c) 2021 SUSE * Author: Nicolai Stange * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. base-commit: 5f0cf68fc2cd28617a86976fc906447f737086d5 -- Ammar Faizi