Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp925643lqp; Thu, 23 May 2024 04:28:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3bIngtB3SsoXOxrGD9UMZgKsIDqVn1mySisdqr4shYFjTavhJMKMw0xxhrtpcJ6OaPdaND2IoN8rQnEOzj3rdMIeIAuZ6HO3GC0iuJw== X-Google-Smtp-Source: AGHT+IGLuUzHVSu3Yp30luBjM1cC344llzup2fBW/5MHv30y0rv5PapDFGxdIwTz3DHgItuN1nav X-Received: by 2002:a19:8c1b:0:b0:51f:b781:7297 with SMTP id 2adb3069b0e04-526be6ea78fmr2949544e87.8.1716463708186; Thu, 23 May 2024 04:28:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716463708; cv=pass; d=google.com; s=arc-20160816; b=RRNbWnPGPqG5umTO7YhW+wsDyJbV/LmpkNa03btbQYwnpUzLqEdTKVt6TnCvUwbPOO zJrI182Kl2qmSuPXg9AV3jFV3nEYSVLxLzz5MoJjesoSpTE/mKXF3i0KyLeTgW/hjytR Y11Gkw8D38NteDljqvr4R0SvI5ZcOXzewC8U97OtGdbkv+CSKzaYsYKqhw/Yu+moNTeo DJQI9RhGOesljajVlJp6g3/weWnTRJpS7DAGNHffyOk2S8YUO2XrknHzkOJx4AKcIRIl Z+ChRPhVOgzgfeciHuj6trYzTEh/3skQJzgBuC0S93sBwe29cltr/fzi97ibufxYpKCE b0ww== 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:feedback-id:dkim-signature:dkim-signature; bh=if5e5WwkzJeIoOCzGj7W+4ffr1RWsZHFOpu3DQ7P8u8=; fh=bZycUneWdXSHWEY0sykHbvtEBQ5KSi1CCFdS9x8dm9Q=; b=JXrbAlZdTTXOfi9SYLcV0WfXWLF2pqDEprb4DkkCDBUMYeiSmsw6j8rG603+VWLj8+ zShbuMInscgXB1Fk57BybWmMLX6esKHWbDtQSrt69sxOAc4iJnaNRrcZD0GjdPLy5riR zCFuWRqSymOpXX84kq0RIFtGZOmwY3aSo3U8BVkKRKxc2XUQu1ED07qm3TyOTHi8js6x d2OjQjOvVoaO75lNxRPjdyv0G2b8PmB0ubKW/8DfiFI46o3wIRsH7Jr4EVsxq9Pclw3O Fuqll1igrXsREltFuYmAcX8DZGP8NNkD02tGsARzSnwCuXNiPhZqP23MAl1UGzbYitRb cAFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=VWUdpLN2; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=oXhXplw+; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-187396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5cfb4be933si849176666b.1013.2024.05.23.04.28.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 04:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=VWUdpLN2; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=oXhXplw+; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-187396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com 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 E1DDC1F2216B for ; Thu, 23 May 2024 11:28:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A70571474CA; Thu, 23 May 2024 11:28:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="VWUdpLN2"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="oXhXplw+" Received: from wfout1-smtp.messagingengine.com (wfout1-smtp.messagingengine.com [64.147.123.144]) (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 BCCE513C91D; Thu, 23 May 2024 11:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716463699; cv=none; b=tqXTUoycrad0Q5YDYnZY4tkbzAQjkOTT917O2YtQj66Rhx9WjWVRyC2OV9JG9YFEBYeA1AMQGXuDL5nOuAXJyPLB4PDBXnRBqWUWxNS8rA3rDn2+ZpJIbUsSMNPyJ8guOduG/A7wgXxFkXHf8xk4Kd9UC+fMk9uzeA0zhrp1l6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716463699; c=relaxed/simple; bh=98af4TZTxoNtCMAu0GpqxIFWTOMAVwBIl44PAzZ2++s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BhTLVVtpw5S5xPsQrRkCyBfvL85CW3dj3xv5bKzBxDRU3JEsyOE6XPXTN0dvDpRq95mK6pHjDyN1U/029vyRS0CRnR+5haR6Ov3OYOycNvgibrQRnLflrynUBAN9QU6tvUO9+mj0KCaJB/2sxxQ14Cgju0JhlnFFPXsqGavYIeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=VWUdpLN2; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=oXhXplw+; arc=none smtp.client-ip=64.147.123.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id BC46C1C001DE; Thu, 23 May 2024 07:28:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 23 May 2024 07:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1716463695; x=1716550095; bh=if5e5WwkzJ eIoOCzGj7W+4ffr1RWsZHFOpu3DQ7P8u8=; b=VWUdpLN2a8RsBDIf+rC1CIxc2g mVsXBBruEuC0bqMUUP0T+xTp3vR2BS/SNGcEETCnv2Ifxj+etUKDu13EMVJuZ2EP xWtggkkA6jkGcfsy3/omIPPCvtW4fjaWzN6BoMf2WL1wfR9ohoVK3rNCHolFP1Sk H0+Fp5661//u+Ymqz3T6H/7z457lc6L/aDVuWpDQG+W4k8dvtGy8QWaULEqERuhe hU/G3fEclOgwXF62255tomnwim2ErSKe8+bN+hDK0ZWmX4aW+n+D3ocvnxJxAAOt 3Rxzubp1f1/+RZSrYyyqdDXW0xcmL39RNyhWyIED451PTG9aW/MXg9RvzkwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716463695; x=1716550095; bh=if5e5WwkzJeIoOCzGj7W+4ffr1RW sZHFOpu3DQ7P8u8=; b=oXhXplw+/HmJEAscFsdO5pb1D1C9as6Rvi3qlyQe6mnT d87YfTHZcpTWMb4Je7IuJe+qDsBji+v3IIb75f+Nn6OvzJ5wsxJAW9jg69oYYu7v pF8CV7DLyN907NI6diN0/6rJMkjeJwXgRBhC9ej+gXZ+0TqUOW/ePQ9JzVRHmXsK o8DS6JiVyCo0SIoInElOkRu+84lism8uJru6Az6RPTy5MGpKwdTAggII7w1fTeLQ M8zVO4k0OAW8ioXbnl87yG119OY8w9jBkXTAU4LiYhF0e5dGdJewExiQcJK6KXsP acv58S8opmE05SsLLNaixlvp5Vl0KqumlXnjISXg6g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiiedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 May 2024 07:28:14 -0400 (EDT) Date: Thu, 23 May 2024 13:28:12 +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 RESEND 6.6.y] kselftest: Add a ksft_perror() helper Message-ID: <2024052305-unmapped-renewably-b3fc@gregkh> References: <20240520175629.162697-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: <20240520175629.162697-1-edliaw@google.com> On Mon, May 20, 2024 at 05:56:28PM +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(+) > Now queued up, thanks. greg k-h