Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp193657lqf; Fri, 26 Apr 2024 04:09:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+upKVx+FQeqjhEZxh17HaiI7ExgUfCtAUcxDfa1HbXdtjRJh4hU3w9oA8xgFE1ANkyDMbDlM+7vHlRIIBRQjIT+pGgg42NL0R1XhQyw== X-Google-Smtp-Source: AGHT+IEs1sFbjsRzAdCcCJsQx3HMYQOMHEY6t6rxD91xHE5weilkvF1QeSCph+xgd01r6LF+EezH X-Received: by 2002:a17:902:82c3:b0:1e5:4743:deba with SMTP id u3-20020a17090282c300b001e54743debamr1772132plz.58.1714129793356; Fri, 26 Apr 2024 04:09:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714129793; cv=pass; d=google.com; s=arc-20160816; b=NG4xB870zKZyU1+EQ14WVrhBnJHIt0yDNNyk0SAyGjM//302c85CV8BrC14hbH8soH mATGnacckkONvKV2PnwwjuHK3Pd9UN/boDSu0R9h2fNX4lrHB7EerLrdfD8g89ZmFNfD aHULPuQTQm2FbBg9mVZdY4ubzVscrUSwOQfRpnce5LrmvBbY7Irb1dqdMSJBvI8q/6dP SaMxl5QRIOU2WP1Ym28rDhMRyS/kb8WzmkuKKr8lRXIz098FIPeagWbroBWDobs6B9nk R+x6Sv7eTt4yNIKLastY5Xna1m616eP+mBV3PfVgwt3NEBfchdhl8Q/W3ReeO/6lrumK XU8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=E1mYGAPJgEQNC+upkpAm6mE6T3/QnOx9k2NdXTUzqgw=; fh=lrawtlvYUyTnD3YboMckJjmalpw48Rm60lz21Jj4CJE=; b=HPaz8ncAwYM8js4nD4d2WqdHX/VmvY0YMYAa58Xs+VMfHihRDsOqTsp/Nhd8pbq7Q0 o14TWafYYZWN3IdvAF9YIzQemnm7+Ho2C9IzCDX93KQ85GDtFQnxuSIqBXpVmqXib4Fq B77IFHXKBhM0QALvVXNMwfO7N7FrEqW7nBrxDnYiklK4GESb/gec+FWeHrBVLVstbJfu hs4dcUvfJUbxp4qZnYMu0WRNzUD2RFRxmcsSEYA6Lktco17o0w13oD0s2fT+hvJBousd LL5YizPdvfAVqZ7y83AaUNudc8YJHa9/GpAgTs9p1dqEfO/0JDt6+l9D5a4X4fh1d/YQ R7Kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=cYEkVXJg; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-159925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159925-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id mf15-20020a170902fc8f00b001eb080482e2si1122820plb.531.2024.04.26.04.09.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 04:09:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=cYEkVXJg; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-159925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159925-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0FE14B22F2F for ; Fri, 26 Apr 2024 11:09:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5785C145354; Fri, 26 Apr 2024 11:09:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="cYEkVXJg" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC95E1448DA; Fri, 26 Apr 2024 11:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714129765; cv=none; b=lC3MOtIIlLEHtJ20Llyla93ObMwLqs4faV8OQ7GKNHR4g8Yl5RRbMculW/ZKHJ/MPVtH8nZO8DPxhiwkL4T8N0CCupvtYx3vSgAbSrGxXN+IAij2sQ6fn8TbX/r5iCtgcvV9j9d4ywcvMhu9zZcCAkZfwE3snK+Ue+zf6A3Aea8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714129765; c=relaxed/simple; bh=mCOsbA8XTKfUjIjHhFRg2pqvJ8L43G6NbXQZAzF3Vbw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=jHAFU/zu0L2ZDYKWmtByWdD0txxt0RXfeY3v/jpSo0q+BM2RxzCfl9C2oT9aSSGrmn6qoWKwmu8DWVzGlBZ/k+agz7rELos5mbOZc1m716kzCUDTpS5eOUqoA0X3HDhwqCGnANnUrGCvvLMilqT4jGF7qHi2l9CS4vrf3m6A0+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=cYEkVXJg; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1714129754; bh=mCOsbA8XTKfUjIjHhFRg2pqvJ8L43G6NbXQZAzF3Vbw=; h=From:Subject:Date:To:Cc:From; b=cYEkVXJgCHc2zQ0Uy+af5TwlHgFUDQO659R9n1CDJvIpA0aws4La6bfXs4cZ9ye7V 9j+/o/SR6AXuc7k8lCiLn7lM6vEImqnlw3PgG7EOgKzff/nxKt3l1mlsRxaVQ5hAIZ S9ZgbSkVQOyZkxXBM+J9Dn9WbcMzm7aX1AtOX1jU= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/3] tools/nolibc: implement strerror() Date: Fri, 26 Apr 2024 13:08:55 +0200 Message-Id: <20240426-nolibc-strerror-v1-0-76a4c9c5271d@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAEeLK2YC/x3MTQqAIBBA4avErBPMn4KuEi3KxhoIjTEiEO+et PwW72VIyIQJxiYD40OJYqjo2gbcsYQdBW3VoKQy0igrQjxpdSLdjMyRRT94s/pFaqkt1Opi9PT +x2ku5QOeU4b4YQAAAA== To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714129753; l=851; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=mCOsbA8XTKfUjIjHhFRg2pqvJ8L43G6NbXQZAzF3Vbw=; b=uJgbfX+df3lXaHIUXo8lzKb+2Xco784o6dJ2+5XYn2lpezgnzrZpQqhqx91S1CcZvxK1fdVuO +o0j1pXXfUMCc5sL9ZdTBZEihrkQZxbFzFLE2cFabAykFCVLU3nVHn2 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Adds a simple implementation of strerror() and makes use of it in kselftests. Shuah, could you Ack patch 3? Willy, this should work *without* your Ack. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (3): selftests/nolibc: introduce condition to run tests only on nolibc tools/nolibc: implement strerror() selftests: kselftest: also use strerror() on nolibc tools/include/nolibc/stdio.h | 10 ++++++++ tools/testing/selftests/kselftest.h | 8 ------- tools/testing/selftests/nolibc/nolibc-test.c | 36 ++++++++++++++++++---------- 3 files changed, 33 insertions(+), 21 deletions(-) --- base-commit: a3063ba97f31e0364379a3ffc567203e3f79e877 change-id: 20240425-nolibc-strerror-67f4bfa03035 Best regards, -- Thomas Weißschuh