Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2156708rdg; Sun, 15 Oct 2023 14:03:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZVV8ZNn7Bd/9S5kRvfaMUvDi3cVsewNrXH++LHE9ZO1imxoEHprm5H2aFnIcasW2GozKl X-Received: by 2002:a05:6870:b025:b0:1e9:f69a:12fe with SMTP id y37-20020a056870b02500b001e9f69a12femr7515040oae.59.1697403800113; Sun, 15 Oct 2023 14:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697403800; cv=none; d=google.com; s=arc-20160816; b=spBSsitGQPfZlyw5Rhld+fckK3WoJY/eFfyK2sHLip5iFybV2TZ9mj6r/DOJbBlphz 6OdcwiZVILVXeel6UcJDSSKu784R+6Pz17SzTQBdcU4XQevHbG359RYtPVfPNl8x3npJ +MvHZqLE2SPIo7rSsBOWSEMJO52HENFO+A/j3VjVut2Jfhlm89M2bWyG/hpnz1a72v/n o0h2f5kUs0os5lrq1XwTCAUTPzntCH0oyUkYtPswm4yeBT24El2V+SRdtEsDLuhhZX/t c7eDNarB7d8ErHvXfdhp+B145utkG0JnbjZK4rX21hlYqlA3WzjOsa88jTTGpcUdTizA BZhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KposqxUkWAf3vRCPWp69IhSrFYyQGaqXqsPRR4m39pE=; fh=/faRbLzGNtsPaLDxjRZkli3+5KoIqF3DwmsZA/Uabv0=; b=K5yDgpLXrrulejpw1a7KHYyHlHGgoOJDrCqax+qTgBlP3MBDXEC9Sj96CCXPLdiKR5 tT9yOI2P/DcY88PJ0B2An5V6B99A3eb9zE3yQhVXLIzmBuZuLoU8aBWgkA6+9/pIcP1/ lwVof5fpXzQeOdTMbsir7fzQyJWV3aNekGteEydLPJ5tXlCUlRzw6Vtvd/PD2dffsE8E 6ysCW9uKPvITspjskRwAeQ2zrhEsApjLZviOAet0Qg3X8WQV7VV+MHYrmrua4/OJUzZB ZDhreciom/CkVdEne+j0nCeTPY2+srdEZFoAeUGsBkZJ9BrnPSD30m88xV1GAsn4IYrv 4dxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jcf+c4t0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q24-20020a638c58000000b005859e224617si4819075pgn.818.2023.10.15.14.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 14:03:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jcf+c4t0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C7F2A8065EDE; Sun, 15 Oct 2023 14:03:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbjJOU5N (ORCPT + 99 others); Sun, 15 Oct 2023 16:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJOU5M (ORCPT ); Sun, 15 Oct 2023 16:57:12 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6788AB; Sun, 15 Oct 2023 13:57:09 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id DF66760003; Sun, 15 Oct 2023 20:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697403428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KposqxUkWAf3vRCPWp69IhSrFYyQGaqXqsPRR4m39pE=; b=jcf+c4t0m6YBHl6BWe1glmi5PpqUwCEULveJk2TN7x97QSF7O8Mo7xFJzNwEz4iKm49uWi njPjizkytfdGVy4I05nkUmICZ3tKe+41PfLQb5+f9nGLTxa3og9tzBWxw4NpD9lsjPksxB Ebp5ExSnEn+6SDdt8PFhs/sVf4QN9FUkcTEF42LQoOI45DDA2v/zaO6EI6kF9gcQPomHQw vqY3/rOUfVYicZZ0xx065ZL3+gL3zs0GM+A4YU2aAEDzfVZhn9qyYW1/TZ5Bttcdm/Bd3L 1MjpuCO79ocxiyVvQhoYyPHtiTJayECXvtGh3qFou0OSrnF2/LSf8Ff3aNClHg== Date: Sun, 15 Oct 2023 22:57:06 +0200 From: Alexandre Belloni To: Maxim Korotkov Cc: Alessandro Zummo , Shanker Donthineni , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] rtc: efi: fixed typo in efi_procfs() Message-ID: <20231015205706326de111@mail.local> References: <20231006090444.306729-1-korotkov.maxim.s@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006090444.306729-1-korotkov.maxim.s@gmail.com> X-GND-Sasl: alexandre.belloni@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 15 Oct 2023 14:03:16 -0700 (PDT) On 06/10/2023 12:04:44+0300, Maxim Korotkov wrote: > After the first check of the value of the "eft" variable > it does not change, it is obvious that a copy-paste > error was made here and the value of variable "alm" > should be checked here. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: 101ca8d05913 ("rtc: efi: Enable SET/GET WAKEUP services as optional") I had a look at the history and this is actually a bug that predates v2.6.12-rc2 and so its introduction is not in the main git repo history. I guess nobody actually cares and I'm very tempted to just rip out this procfs file. > Signed-off-by: Maxim Korotkov > --- > drivers/rtc/rtc-efi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c > index dc6b0f4a54e2..fa8bf82df948 100644 > --- a/drivers/rtc/rtc-efi.c > +++ b/drivers/rtc/rtc-efi.c > @@ -227,7 +227,7 @@ static int efi_procfs(struct device *dev, struct seq_file *seq) > enabled == 1 ? "yes" : "no", > pending == 1 ? "yes" : "no"); > > - if (eft.timezone == EFI_UNSPECIFIED_TIMEZONE) > + if (alm.timezone == EFI_UNSPECIFIED_TIMEZONE) > seq_puts(seq, "Timezone\t: unspecified\n"); > else > /* XXX fixme: convert to string? */ > -- > 2.34.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com