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.172]) by gnuweeb.org (Postfix) with ESMTPSA id 81D518060C; Thu, 20 Oct 2022 11:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666266784; bh=g2OlnhU+9eXWP9cxM+sSokY9b2OjMztJI5krH2vilpg=; h=From:To:Cc:Subject:Date:From; b=mwLe4oyZf4el4FZ4HiUIazaUUfGEG7pOWDD4EHxdd3YLAVw0RrpM/SjLAw1pdJaXO KW10Cx8eYzb8szpevsGiHPvsvSoozqMXQcYJqMCD/IijFIwVrVoUDhgCBOLL+oMone gt6ctLQ7iCIEyiEgecnopbw81/x6IMG62bsShp2E+lTAKDbt0yeLycXEEotfRbXWfX kLS3DAyhg99TiWT57vsouErCamFBoMlm+gzxc0Ls8u1icApFJ7gM1AP4PFPJRdpNjm gM0Ggxz9VeKy2VRKKyP8w0Vk3KAee+bjvYhMjbPqwVaSlle4puk5knuGovJNppqhuW NT4bZiNiV8MdQ== From: Ammar Faizi To: Jens Axboe Cc: Dylan Yudaken , Ammar Faizi , Pavel Begunkov , GNU/Weeb Mailing List , io-uring Mailing List , Facebook Kernel Team Subject: [PATCH liburing v1 0/3] Clean up clang `-Wshorten-64-to-32` warnings Date: Thu, 20 Oct 2022 18:52:03 +0700 Message-Id: <20221020114814.63133-1-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi Hi Jens, Please consider this small cleanup series before the release. This series is a follow up of the clean up `-Wshorten-64-to-32` warnings that I discussed with Dylan previously. It only addresses the warnings in the src/ dir (main library). We ignore the tests for now. `-Wshorten-64-to-32` is a clang-specific flag, it currently doesn't exist in GCC. There are 3 patches in this series: - Patch 1 is to clean up the warnings in the main library (this is based on a patch from Dylan). Taken from: https://github.com/DylanZA/liburing/commit/cdd6dfbb9019.patch - Patch 2 is to introduce LIBURING_CFLAGS variable in the Makefile. We need this varaible to apply specific compiler flags to the main library only. Currently, this flag is only used by the GitHub bot. - Patch 3 is to integrate `-Wshorten-64-to-32` flag to the GitHub bot. Signed-off-by: Ammar Faizi --- Ammar Faizi (2): Makefile: Introduce `LIBURING_CFLAGS` variable github: Append `-Wshorten-64-to-32` flag for clang build Dylan Yudaken (1): liburing: Clean up `-Wshorten-64-to-32` warnings from clang .github/workflows/build.yml | 4 ++++ src/Makefile | 5 ++++- src/arch/syscall-defs.h | 4 ++-- src/register.c | 5 ++++- src/setup.c | 12 ++++++------ src/syscall.h | 4 ++-- 6 files changed, 22 insertions(+), 12 deletions(-) base-commit: 2950c0c1b23ef6bc3cfa3646adbfeffc23fc59cf -- Ammar Faizi