Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2195576lqa; Tue, 30 Apr 2024 10:30:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm82B6u1yV1443gPwZYMUMAA0eBMTdyT0Qn68ILUtfSYFe1MeCsJotbdT8aDuDzoXryCY/sexFuCBn1Y1PDjQXqfDHXyYmippdLrD1vw== X-Google-Smtp-Source: AGHT+IHTOez1sDrg4NhsuCAWR4RdWYSEnJ//S/7350BY0uIH0v0QrvO6YL85WOzupLh6e5caHODm X-Received: by 2002:a05:6870:4e0c:b0:239:8660:6f4 with SMTP id pl12-20020a0568704e0c00b00239866006f4mr189389oab.0.1714498229473; Tue, 30 Apr 2024 10:30:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714498229; cv=pass; d=google.com; s=arc-20160816; b=THBFGnt2yzPb/6Lf0PLbN7N2fMyrXTB//L8/h67qvkk9VxYXTduhHdnyqLLNbH1jhO t8N2gJObR9DvKhLfRT9ZFIyJZsOVrmPQmzDnJinPgHmqoak/WA0+cJ5OlBqcEU/JcbsA p17IYLnfWhBFbYrCx8G3CUBSxfGZL5MWpZ+qbbaAfA/jW5mcpXXnAWb043/XG53DZuOK qlap42Hc6jS03RfjAnwjVAqqL4rPIShNLt6abbFfIdGgMFw0vsvWZRdR/uWgtym7wUpe 9RwvXFiAJdw4IYGMDmDuDXjHiEsO5LhMhtCM/G16ouPEa2ciEny7unA0C57MpRku8x7c KpyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=awaW7AT0wOcGmKhgMWqej99cmUwIAXC84LCX446x4FU=; fh=eZFG5akRi/+oATzFNdII8GZ473gmsLWElpHvvl+3y2U=; b=DXkv1wqw2da9/kMi4BOmQcFyPyyQooY9aoDaOQJXf+nVZilK/n4hXkW7mg9G4uqoWx e8zlUgE82Liqitj014faMBb4RbXaeE5XXrHEf8xzUW/Cvi9t6LEBUxA/JAiR1abYbueN KnkAQBV2ORHRLNlD0Gvor3APx95NGp5F7O88NZdxXsWXugE/Nxf5yUp0pG3uRCL0WDMq k8OG3dRo3/Ek0omqRCZAslnUczCa7q9Q5aVyhFhDW9E6zr6o16ZjLI1qcWrhvm4nCaVO AVGITYx3pwyaqODFWgo7cGnjfowI5Qlo4vufLJxaeR3I1GjMlHRSYbQp/E1zN5Kstszz ZBIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=E3fQ7nWt; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u8-20020a056a00098800b006ead18b0c3bsi22614094pfg.392.2024.04.30.10.30.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:30:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=E3fQ7nWt; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 04F19282CBB for ; Tue, 30 Apr 2024 17:30:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16FCF180A74; Tue, 30 Apr 2024 17:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="E3fQ7nWt" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B344A1802D7 for ; Tue, 30 Apr 2024 17:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714498214; cv=none; b=ET68SLS4yqgSTC4dUx8Z25oLh0dCUs1A/wJQUnwqDxomKSSC0cVCVynOxHt+vuxOoqarXRiqqV5Y5gRKi/s6eoLzZZY1ZNwJSuIlKpm4j2n8Y3UKlQduqTkS+Ptx3yvOROAhhcyBr+gZ9Q8WsmRH/vBcNTrGCerkC8renPywjTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714498214; c=relaxed/simple; bh=BR9Wkd6miBhzfBRCvTbhOcpLA80oqmQjUGpUH96Ratk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oV4XAxaE2Ojs0JhhsYyuM+JlsMkJtcoGbvDeIbsN3IpoYqnqAFqncfGHfT5tPHEsI/5LgpehdtzkMhDsafkKDhHwkDu31a5yG1kr2zf+8B/42Nh85yaOJoouXwVn1J59hrzdJFiCKfZaaFdEJYrbyjF4bfzFD8KpqsoPc3tmk5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=E3fQ7nWt; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5724736770cso947a12.1 for ; Tue, 30 Apr 2024 10:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714498211; x=1715103011; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=awaW7AT0wOcGmKhgMWqej99cmUwIAXC84LCX446x4FU=; b=E3fQ7nWtq0h9yfZi/OzLRPTB2tGnydDkoPI1hk3+4siYKA3C8bStTw9+poPooBbbZY wpHOyB3udWf7SMQd5EumaDO/N5Vi38cZdZWKs27l8ssk6OYKKhPpP6vzgNpzLVEf73zq 6Ko2G1+Gxtk+uuiJCUCn3sPRHMFKLZQ+OprCkert8yjmvB3tnqai3Aes1I6cePUlgc0k rMKCBgIrsQzf+tb/4hdP/iq1kUoXMz7FgC6d/RTLBTRKBsoasjIJC09iE5imzZRZqERe mrsUvIPDEggWeoBQ4PCvQ8BL5DmB0WuERrGAA2Y5SDsD5UM1r3d8LGgVoSJ4aliWkoo8 U2fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714498211; x=1715103011; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=awaW7AT0wOcGmKhgMWqej99cmUwIAXC84LCX446x4FU=; b=KT+yafOzVuki97Bmn/HOezk2vTECjTI252Zt6gVzUGRoIMgtb+F2Vy95vsCYVrlVOZ aTjSaZSHOe13Tb9PYszlvEDQz2Jkgt6CgG5IGFP63J9Y8J7AsCfPctlng0QozqRD/bsp qXpoKbW8vAAvNuZPYRE9r8e1bZrk4ABFBCkls4cza5f+iWHjip3DjHz+McbrKErOQ+sJ Ym5A+XpGaQOqUEUrJdxVIFPXbq5WWqvaK+zrj7cVldPgwllAqFU5Q5Ys+irfnqfMC2O8 qJCTkR2SoDcH+64OBOVIyi8Yjfm5EcgvGbOe9T7S5M7fTh+zQKm/iYuKpC/cGAJAJyE6 OG3Q== X-Forwarded-Encrypted: i=1; AJvYcCXqvMe/1UO8CRIhVEErO0XreDFFS6Y6n4gNseW7371mHsCJcvLGUvkuKA8jI32suLvQIX5foe4MfcPHlWdyXDDlrnK+QNQWtp+C3sOC X-Gm-Message-State: AOJu0YxZZSdsoWJbQAgm9wTBsW8ckB6xLyf0cE8/yUlNiYUaGbIQDFCz 6DV20ByfyQe3HdI+UPnqlwLlz3TDFmdvBHhuParfVjdmtMS2CobYWAwTxTHnFG0BV3qj63z/QVP GTipi/Eu1iTn6Dtz1b7Mva3YQIbo+EaI2C7Ah X-Received: by 2002:a05:6402:3105:b0:572:9960:c21 with SMTP id dc5-20020a056402310500b0057299600c21mr145767edb.7.1714498210546; Tue, 30 Apr 2024 10:30:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240430010628.430427-1-edliaw@google.com> <2024043037-debate-capsize-e44c@gregkh> In-Reply-To: <2024043037-debate-capsize-e44c@gregkh> From: Edward Liaw Date: Tue, 30 Apr 2024 10:29:43 -0700 Message-ID: Subject: Re: [PATCH 6.6.y] kselftest: Add a ksft_perror() helper To: Greg KH 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2024 at 12:51=E2=80=AFAM Greg KH wrote: > > 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 pri= nt > > an error message based on the current errno but this doesn't play nicel= y > > 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 requir= ed > > doesn't seem like a good fit for what it's trying to do so when we're u= sing > > 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 t= est 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? Hi Greg, I double checked and I don't see this commit in 6.6.29. As far as I can tell the earliest it has been merged is in 6.7.1. Do you mind rechecking? Thank you, Edward > > confused, > > greg k-h