From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D52ACDB482 for ; Sun, 15 Oct 2023 20:57:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbjJOU5O (ORCPT ); Sun, 15 Oct 2023 16:57:14 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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