From patchwork Sun Sep 17 15:36:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13388606 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04586CD13CF for ; Sun, 17 Sep 2023 15:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/TDne16LbOL20SbPj3269DqVhAfHF3rlDTLqFvNCtKI=; b=UX91ElGJvWvAwt h9JEYOUE6KjJslI5jUohYj+DZszk8zJ3Jbg4pdAlNqx4pGtFk8KvXqx3Dn8NV0WVbPHDZxPBHp0mz msJrlr4c1RnwlouIc/DkvlGcjLqWLj5d/lfFK9Bg+KhCD1VuRo8ssnNghcv+ukWGtcmk0GAKTEBeF 4iPEdG9Cfobq7NVNR2kYhWLAOUZa46hdo5Lgf4PNsP3qUluxsxqVvq10QgrMrnvyjVjliZrv8ygna ai4/naFwbEwx7LTvbHzFK5SXgYWianq38Op7c/XX+m1ZapADzR5T6l0ZFd6698g6EKF4d7sDZ2lLk zUvHIFiAjE8Efd8nicqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qhtov-00DmTw-2L; Sun, 17 Sep 2023 15:36:25 +0000 Received: from todd.t-8ch.de ([2a01:4f8:c010:41de::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qhtor-00DmSv-1l for linux-riscv@lists.infradead.org; Sun, 17 Sep 2023 15:36:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1694964978; bh=QYp1kQc8N8Jo6r2r7V5ChIUb67vWKSQCfxIebMcHTzM=; h=From:Subject:Date:To:Cc:From; b=Nv/p2LKt6eDABN8iI6EHm8oFLoLEjaicYtUJxMBopAuLPe01M845NIlCVq+LgZJme 1pnyH1nQl5TtZbasgO80ZOSqoH6MHxzk7u0Mr5RlJe0QztyVTptEm5RxubNNvojcLn 1jykhwy6Mq3tC86lXk2Qdrunhw/0n9bCqKYQ/KEw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH v2 0/4] tools/nolibc: cleanups for syscall fallbacks Date: Sun, 17 Sep 2023 17:36:15 +0200 Message-Id: <20230917-nolibc-syscall-nr-v2-0-03863d509b9a@weissschuh.net> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPAcB2UC/32NQQrCMBBFr1Jm7UgSU7CuvId0EdOpGSiJZGq0l N7d2AO4fA/++ysIZSaBS7NCpsLCKVYwhwZ8cPFByENlMMqcVKctxjTx3aMs4t00YczYuXZsrfV n21mou2emkT9789ZXDixzyst+UfTP/qsVjQqpVcNotRqc1tc3sYj48ArHSDP027Z9AdDA1U+3A AAA To: Willy Tarreau , Paul Walmsley , Palmer Dabbelt , Albert Ou , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694964977; l=1049; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=QYp1kQc8N8Jo6r2r7V5ChIUb67vWKSQCfxIebMcHTzM=; b=KtgHX5jQwe8n9MP2CPv9wq5NxMPUMisGTWElmuZY5m6r7CHIKyWQqL/+xc+B9VHnBleufJJnt ZjZm4+aGSYICgZCu+glc2zlAWqjK1RYtt4XubmN1DLKS/uTfnaEvGYd X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230917_083621_739570_F572049F X-CRM114-Status: UNSURE ( 5.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Signed-off-by: Thomas Weißschuh --- Changes in v2: - Replace manual casts to (void) with __nolibc_enosys helpers - Link to v1: https://lore.kernel.org/r/20230914-nolibc-syscall-nr-v1-0-e50df410da11@weissschuh.net --- Thomas Weißschuh (4): selftests/nolibc: allow building i386 with multiarch compiler tools/nolibc: avoid unused parameter warnings for ENOSYS fallbacks tools/nolibc: don't define new syscall number tools/nolibc: automatically detect necessity to use pselect6 tools/include/nolibc/arch-aarch64.h | 3 -- tools/include/nolibc/arch-loongarch.h | 4 +-- tools/include/nolibc/arch-riscv.h | 3 -- tools/include/nolibc/sys.h | 55 +++++++++++++++++++-------------- tools/testing/selftests/nolibc/Makefile | 1 + 5 files changed, 34 insertions(+), 32 deletions(-) --- base-commit: 3f79a57865b33f49fdae6655510bd27c8e6610e0 change-id: 20230914-nolibc-syscall-nr-9a5f544c8494 Best regards,