Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5746646rdb; Sun, 17 Sep 2023 10:15:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGlMiXfmMmV5G6H/TTAR0gVpo9J0JfWHseyxvDuZmaCdpx7oHKPQ787dGcbMt3xqiKWKF4 X-Received: by 2002:a17:90a:fb46:b0:274:7725:ed9c with SMTP id iq6-20020a17090afb4600b002747725ed9cmr5728091pjb.35.1694970943030; Sun, 17 Sep 2023 10:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694970943; cv=none; d=google.com; s=arc-20160816; b=m6f/jRHzI5IoH+0dvvdogXy68wZ4VvfVX4CpU7n6KCnkP6S3NGM2ZmYJ0GprmZ3HFc n5SMy8W2jIjVnvdt+96dciYGAZQJUqkbn0BMbEu5H1mMLo9UeKUEykNlJou205nTPBIc hcrqB7E2ggYAOEGRpO883mTF/bzr3G7te1jhBTOX4lQY3HW44CDBEW3zyUSX8OwLXNh8 7W6+swTzrzBG5n1vxp3C1Bve7C2Elw7MVVAvDOlOBgdrcZibINs5ZkwC3KCAtrvKruXq z48taHBGjHFDS5knpPFtqKHfA8HsoHQ2iiX+op+b01dKw7UDorzTMTOCKPxtqQfZWUpE 8eQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=kQS8G6H5HrbqgMRq3r0VHfn0+tHBrPO93RMaPZ/dW8A=; fh=azYK+WW57en7GGRdjKWjQOHkHDsNRqF/+6hheqDI200=; b=E7+Sj4F812HMhhOmfBnMikl649s4O8Un8pWx5Y9m2Rxxp4QAUuifc+npaFuNc1hnYe hZ196de1P5VtLylt0lpx3vR/Rp8uoquYJo2myzDHJ+Qec8yXuU0lE0PW10bMMGhpGvtF mou1HVoW7E4S5kBJkMy0ODV9v3OUG7z2LuiokpkGccPG2OyFp4LaAr9iB6y5G/rUR9ek N+GCBPbieP44l7t9B3wg+FNPW///2SuHBR8ZwCVPW5xBQD0DcXxDTDvDABfcXnaX46D2 UXjzdylwwNrD0DRG0EwyiO1UF0j+Y+Tu5Gjzj3c6c14adp4iG0BqoLHKJrBQ+jSB+Gu8 bWfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="Nv/p2LKt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y15-20020a17090aa40f00b002680abc3699si8758690pjp.115.2023.09.17.10.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="Nv/p2LKt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B67ED81410DA; Sun, 17 Sep 2023 08:37:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237055AbjIQPgi (ORCPT + 99 others); Sun, 17 Sep 2023 11:36:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239126AbjIQPg0 (ORCPT ); Sun, 17 Sep 2023 11:36:26 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5663FA; Sun, 17 Sep 2023 08:36:20 -0700 (PDT) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 17 Sep 2023 08:37:16 -0700 (PDT) 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, -- Thomas Weißschuh