Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6026487pxb; Mon, 14 Feb 2022 13:25:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBxO8JaiaTM7DxJS/ox8r66b3Zv7lcRvu6wqTMgyaj4YL1dxm6AhTyqUWyoqJ2xe1qDh93 X-Received: by 2002:a63:864a:: with SMTP id x71mr835553pgd.272.1644873945739; Mon, 14 Feb 2022 13:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873945; cv=none; d=google.com; s=arc-20160816; b=elzqxQ66SaUmlj5UsHRcGWyz+ikqwfHJ020KNuxoY2d9T5DKcjgfbWGhNJeL0cFORT L8hY1GRBAMtbIN5zZyCMo5Mi2m+E639YgQkpPcLaMehFfg0NJM56taYfvjAxR24CjwPh TYs0x/uJNE1CxAYcJwtbtYw1PImgj7MUOEAkAg2Sxf8NW9HqRKQet49WkOhXEAjSzvV4 q8mGJq1+phkDG+5R9uhmUEzZBVleAbZCgv0XSg1WmQDmHhQPSN7p3mfcd/ngCBVwtsYZ dj2kmFj7wkv3dujnk0NMrmoka/U7OJhXr2wDg102D7vxpBXDumO0NtK2OMwOpneTGaW6 KYhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=p+tdD6mGElm5tN63k7TnfnM8fJ9YUDcs+PvRVnwSXY0=; b=trX0R4uglLc0ULAP/xVO58FSMRccT6oGbocLPDdaQgIZQAvOx8bu1r0xRYc11cHEZ/ pXQKp9JmlM1GUDzgBPabI8WR8M7VMwvl5sVHL/mX8xjr2Hf8ng7S7Pu4wowvJGEveg9N LLEF6IbLRE37E1hS92A2FmjpuCdHnoMGSsyj/cX5F9hJjA4b1Iu4KWAJLeh+0EKxc9RX BeLTX7b34o6Q1Pp05PULlldEJeodVBRZvd/gPD+qaX2i9HfwtsGJS2oQ52HHZq1UHk2+ mM2iHMgcli+Fp1J/heM1zXq4Oj56eWyOTUHdYtIEdcYnID8DSCJC5RBGMPtV9Lqt2Qre Jb0w== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id lb11si13367776pjb.187.2022.02.14.13.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:25:45 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C907A11D7AD; Mon, 14 Feb 2022 12:45:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242697AbiBNJNG (ORCPT + 99 others); Mon, 14 Feb 2022 04:13:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbiBNJNF (ORCPT ); Mon, 14 Feb 2022 04:13:05 -0500 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E913A60068 for ; Mon, 14 Feb 2022 01:12:55 -0800 (PST) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Jxz5Z129sz1sr4Y; Mon, 14 Feb 2022 10:12:50 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Jxz5Y6ThLz1qqkD; Mon, 14 Feb 2022 10:12:49 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id pdJ6wzpt_XJf; Mon, 14 Feb 2022 10:12:48 +0100 (CET) X-Auth-Info: i81bJA8adEdhuMnwODt1w9ZYPCIJmRzN5xVOLlFPDwvVOgLBggv7jog9GhkXrxg2 Received: from igel.home (ppp-46-244-178-131.dynamic.mnet-online.de [46.244.178.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 14 Feb 2022 10:12:48 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 375862C39FF; Mon, 14 Feb 2022 10:12:48 +0100 (CET) From: Andreas Schwab To: Sunil V L Cc: Ard Biesheuvel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heinrich Schuchardt , Anup Patel , stable@vger.kernel.org Subject: Re: [PATCH] riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value References: <20220128045004.4843-1-sunilvl@ventanamicro.com> X-Yow: .. If I cover this entire WALL with MAZOLA, who I have to give my AGENT ten per cent?? Date: Mon, 14 Feb 2022 10:12:48 +0100 In-Reply-To: <20220128045004.4843-1-sunilvl@ventanamicro.com> (Sunil V. L.'s message of "Fri, 28 Jan 2022 10:20:04 +0530") Message-ID: <877d9xx14f.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jan 28 2022, Sunil V L wrote: > diff --git a/drivers/firmware/efi/libstub/riscv-stub.c b/drivers/firmware/efi/libstub/riscv-stub.c > index 380e4e251399..9c460843442f 100644 > --- a/drivers/firmware/efi/libstub/riscv-stub.c > +++ b/drivers/firmware/efi/libstub/riscv-stub.c > @@ -25,7 +25,7 @@ typedef void __noreturn (*jump_kernel_func)(unsigned int, unsigned long); > > static u32 hartid; > > -static u32 get_boot_hartid_from_fdt(void) > +static int get_boot_hartid_from_fdt(void) I think the function should be renamed, now that it no longer returns the hart ID, but initializes a static variable as a side effect. Thus it no longer "gets", but "sets". -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."