Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1856886lqa; Tue, 30 Apr 2024 00:52:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpnMsSFx0xxC9jhbsj7y48sMO4yUEpRZOFnjAit/7j3NaQsGm80rJASNvjZG8C9Utn3PeJRMoSlqTKhl4apSxs1tUeqiLVIUS+1cDrYA== X-Google-Smtp-Source: AGHT+IHg8E6IEdR94KSzzQLw9ICIAkiDDJ6cpJQsUwGTonlOPUJJCxMh678WNEjFOmdcg6JTXY2d X-Received: by 2002:a05:6a21:1693:b0:1a9:509c:eba6 with SMTP id np19-20020a056a21169300b001a9509ceba6mr2557214pzb.25.1714463558057; Tue, 30 Apr 2024 00:52:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714463558; cv=pass; d=google.com; s=arc-20160816; b=ueQM9GaGkdvHHoqV7sdRnefI1tA4J/DN3+PaHglPxh1By19wsjtBUQg8H3Ql0TRiH8 azE8f7Oj2wq/w/BjuihCSuU82DZiuoPUL5sB658sbRgV68SxrloQmfSxe6LKQBbvjD0e e/i3PRbzAE9SNblmK6hmob0xXTRsdRCbVIIYtvhqhpS7+mRsB1uFMZO6MI+gChwk1xM1 NtHjZWn3yjccY5PabznKYYx+fdRwfulpH3nOt0h+Ayzs5TOKvdS+88cBFH2Vd1qoEbM8 s1k0beLO78MFKaKfj0feXvdh11+6vvrTVs8IlKsQMUWMPkNy21pkrfEg6h1uB4gTNmXp 6zEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cb3pN2rtkTUY+bI1qsa8fp72KO+cjH4FXlmMtL3lGCc=; fh=bZycUneWdXSHWEY0sykHbvtEBQ5KSi1CCFdS9x8dm9Q=; b=r5qRBKIzNlrHuL3I5RHbCPrzcGrGY/pPzUqfniThNwQy8S28kgIVo+XbQq+rPSWrYT lqZqR/6MEl+h9M3N2ZqnBpmTamzk9N6z7v/7+VNIFXfa8IZ60o0rcqyagfuum/QJaJew 3YvehKfLK9Ebq12CfTPBrmroDJXoQOt8fIWt4aX+aMp0T8z4h6gXUB0bDA64XekirJp/ rbt35bPXzENEF6f6UmvxKLVrWs2akGTU5ZL40kAXtenz0WeGi0IM9ocjWUuHfjY9vyGq +CkMJFjZErnK5sCag4ZxG0Aaxt6ab1jxm/uh5yh3h5EloEqpN1lRiBCDZdy17Xg4Q7ek UYCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Fpxq5981; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-163503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 63-20020a630042000000b005f7fd4ea198si19549127pga.806.2024.04.30.00.52.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163503-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=@linuxfoundation.org header.s=korg header.b=Fpxq5981; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-163503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 9A3DEB2137A for ; Tue, 30 Apr 2024 07:52:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C3754176D; Tue, 30 Apr 2024 07:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Fpxq5981" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 658E73FB87; Tue, 30 Apr 2024 07:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463517; cv=none; b=WCE1dlsY+vUbW8LQVP/cZJvcYmjBjhZO5AGE+NdE/T9ahHDuuE4KLdWpOZfaUNTG/Srw1amZQywuJ2HTxktP6K4E6e/v+JzImssuO2X/qXTFT2SrQd5svcRWobRF4opGpx/c5UrHtu1WRMYTm2gqSN4VXW5d5RNns02WTB0YA2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463517; c=relaxed/simple; bh=v0WF6wRNl0/o4ZfZUcYLksd3B2wnn2d8J5cCYz5LJiU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E0yfobmPJrPvNS9UZY/4maXr/3fWSYeiRnh8J0W4mQatslPtjLJ8oSiY/AGqB+6qIHE48KaGTT+Rj8KwsKdGjHDkEVosyYGgjenmuvSFHwNtgR+CTD45ro6Hu8B1zEfMQIdSYYGrqIUgQq4vbvjI4PwymP/oCJkhsJJEY/Ve5ew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fpxq5981; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6293C4AF17; Tue, 30 Apr 2024 07:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714463517; bh=v0WF6wRNl0/o4ZfZUcYLksd3B2wnn2d8J5cCYz5LJiU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fpxq5981i/tonHvgQuediTxuWMIbKvv5Ne3dxmiMm0+57NaqNaLrzxSit2KNKqwQt 1sB2Gfq/k7rpxsTFiB/Yk2rqVvlJ7iYVvTD7vxCOApgJYPbfXjwTi04locT3zBEFeP U0FR3AVlJXYsMXTfYA0uKhbiYucrmOlhbIN9qnFg= Date: Tue, 30 Apr 2024 09:51:54 +0200 From: Greg KH To: Edward Liaw Cc: stable@vger.kernel.org, Shuah Khan , kernel-team@android.com, Mark Brown , Kees Cook , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6.6.y] kselftest: Add a ksft_perror() helper Message-ID: <2024043037-debate-capsize-e44c@gregkh> References: <20240430010628.430427-1-edliaw@google.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240430010628.430427-1-edliaw@google.com> On Tue, Apr 30, 2024 at 01:06:27AM +0000, Edward Liaw wrote: > From: Mark Brown > > [ Upstream commit 907f33028871fa7c9a3db1efd467b78ef82cce20 ] > > The standard library perror() function provides a convenient way to print > an error message based on the current errno but this doesn't play nicely > with KTAP output. Provide a helper which does an equivalent thing in a KTAP > compatible format. > > nolibc doesn't have a strerror() and adding the table of strings required > doesn't seem like a good fit for what it's trying to do so when we're using > that only print the errno. > > Signed-off-by: Mark Brown > Reviewed-by: Kees Cook > Signed-off-by: Shuah Khan > Stable-dep-of: 071af0c9e582 ("selftests: timers: Convert posix_timers test to generate KTAP output") > Signed-off-by: Edward Liaw > --- > tools/testing/selftests/kselftest.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) This commit is already in 6.6.29, why submit it again? confused, greg k-h