Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2149518lqb; Mon, 27 May 2024 09:19:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpRQaCQA6MggF2NOLMe+t9J1jgfAkw/snyYxyliVrgOEd0S67Wk1qtVkLj4H5XY7SKEzM6s6fSBnA/922KXQpr3OpuMAiNQzTMgVrFhA== X-Google-Smtp-Source: AGHT+IErifWWIJ9uBsIGt/ZUzzJZYJ6YBMWuu1u+1cBFTNNUIz7fh1QLRb7XK+tsQyp2yw5YhP7n X-Received: by 2002:a17:906:318c:b0:a59:c9ce:338b with SMTP id a640c23a62f3a-a62642da95fmr737720766b.35.1716826742454; Mon, 27 May 2024 09:19:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716826742; cv=pass; d=google.com; s=arc-20160816; b=wu4J1OgMDd5i0hV39OTqv7htZNrNWq6c/QN/9K+OSGLwjO2dt2XDMxcNi71OOI30My P7mULo0mkKgYh/CjSwHspS2VjlV1oRnUYC9wGJ2Z8uhm/Y1RxqFcjasuCsCPLze7zs6V BmkNqSgLxA6DtGzzZ5cIk8v2HytF7K8bOkUZGQsifpBXVXMC9OOENoWpJu+u0+oL5hVh WJUfYx+XOu/OWG0TjfAzmZm5K8x/8Dgk2gzDlbXAsSY8grU/m5R0RPdYLj1gP8lY7b0h rz1LYxE7S2dpCIlejCNV4liwQPI2xwZxsnKDak3DUTfxfEflleIxoC65nvu9+UKUWImo EdOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6Cm/x6GOOcMefREBlEMOAzHKNHgRgEOCr3haAsPhjAw=; fh=LZoEf1R05H54QYcjiC/oCN/36PIqcTo2CSVvVRWVpqI=; b=JkHCExwj+k32Bs2utye2nJwJ/24HXREcmPOnIltZyh4axfnCVdYrymyIV8XYiZUmAo 212JavelD7mvcxQT/0jZYESeNi0Gp8y7oZO75KXjrh3h74RvcWrXz9I7LfZWfypMxU32 pNpk/cmOddQHdUsN7rAtf+ZWMc0vgVqax7KYWxgd30e3FAouxR3XNCaeTt69vARJKAsL I6LxLxm2t+3rTfJtQDFzAMJHq4UokPMKplA+kvbsZ4XrTOs6ZRjzbKXwx+7lRJjHtP+b pYPWu0MlO9MG91foiq+M3jvZ/WKRor/4vQt5uV1RaXzJ4ukhgV1V2WSPJKEYIXZRShxN FLIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=nRhYPpcP; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-191206-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c8005c4si398803866b.71.2024.05.27.09.19.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191206-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=nRhYPpcP; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-191206-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2FC191F21709 for ; Mon, 27 May 2024 16:19:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AFF415FA62; Mon, 27 May 2024 16:11:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="nRhYPpcP" 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 84CD417E8EC; Mon, 27 May 2024 16:11:48 +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=1716826313; cv=none; b=ZN5HyfUmrQVN1SnIg/EZL/5Nx4QBYuSpej1kW/dBGQ6S27j9KkxU3SLsQKtcfS4YEuVE03nfOfyVtY+2G5AdmFZ/bCpXPVLKFTlMrhm1Sz13ZOsu4wUkFBCLT2M8R9Qagu/aBak8FnkAxS++7vyH9LFkSWuyo1aiWnITtGoS0Yg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826313; c=relaxed/simple; bh=AZo4vcTw7yyS0pCRmU4gDq31dsX62WYBOqt2MYCWD7U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n0a5qqS93y51OFCCpd08NS6yuVNRgmZBzUe/ccUT7mWULtUvh+ydMIz3jzddGUut1t/wNpzoeXDHiMay9TIZSkwaIvTDaJfsyElM58kXfLStKAlSMzhXstTjgODIAZyFflKLkVJIi/rHffFoqQP4sCx15tWwtzVabvBb83igOz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=nRhYPpcP; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=1716826306; bh=AZo4vcTw7yyS0pCRmU4gDq31dsX62WYBOqt2MYCWD7U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nRhYPpcP7rG/gEdPcMFKZYWZAh9R+swqfkZKG0mtRm1aOZwm117RbCYKdV0tBwAVR wjyOfSTCgVvo6Svp5YI9IoYKrjEdKSS7jLH6upNC8xnolkNd9nUxoVV0f1DNQsJ51H 86eMSDeWIIveKZS3/W3aEIvdEBqanlqLrji8GL/E= Date: Mon, 27 May 2024 18:11:46 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Shuah Khan Cc: Willy Tarreau , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] selftests: kselftest: also use strerror() on nolibc Message-ID: <56ea48ee-e278-4f37-a80f-9fd70d9d8d3b@t-8ch.de> References: <20240426-nolibc-strerror-v1-0-76a4c9c5271d@weissschuh.net> <20240426-nolibc-strerror-v1-3-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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240426-nolibc-strerror-v1-3-76a4c9c5271d@weissschuh.net> Hi Shuah, Could you Ack the patch below to kselftest.h? Thanks, Thomas On 2024-04-26 13:08:58+0000, Thomas Weißschuh wrote: > nolibc gained an implementation of strerror() recently. > Use it and drop the ifdeffery. > > Signed-off-by: Thomas Weißschuh > --- > tools/testing/selftests/kselftest.h | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h > index 541bf192e30e..f4bfe98c31e4 100644 > --- a/tools/testing/selftests/kselftest.h > +++ b/tools/testing/selftests/kselftest.h > @@ -161,15 +161,7 @@ static inline __printf(1, 2) void ksft_print_msg(const char *msg, ...) > > static inline void ksft_perror(const char *msg) > { > -#ifndef NOLIBC > ksft_print_msg("%s: %s (%d)\n", msg, strerror(errno), errno); > -#else > - /* > - * nolibc doesn't provide strerror() and it seems > - * inappropriate to add one, just print the errno. > - */ > - ksft_print_msg("%s: %d)\n", msg, errno); > -#endif > } > > static inline __printf(1, 2) void ksft_test_result_pass(const char *msg, ...) > > -- > 2.44.0 >