Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp586081pxb; Thu, 24 Mar 2022 03:11:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydzaK0znEuq1gEkMe6p8Z1ZgRBfwWgVsGgDEDmA9wAUn/egzui/kzfQcYRIfDHQrFV5Xrt X-Received: by 2002:a17:902:d48a:b0:154:7a1b:5f2b with SMTP id c10-20020a170902d48a00b001547a1b5f2bmr5011206plg.52.1648116679280; Thu, 24 Mar 2022 03:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648116679; cv=none; d=google.com; s=arc-20160816; b=PtEt8TDCj49kJQqqVpNQEaiFkUg1LZ5JXjKRRoP2B3B3iqU4WMNBvxzydtIrwLMVng DI3SVkeEFtfs0nb8CskhwkzWjWIty/V2I8trYD6fx7cWj276+5Hmp/4iRcffRtGXlOaK ANGCNZqq/7cCFgI5W1CBIjGttJUma0GsoDVd2RnCY7FaQpfu8N3m0sTc3XJvNEY/HZGo Jc3JrhL/vMAjKIsUTmN3QP7R6AhM+qthQhMG436YMwxJgQWoFj4vLYPfQVWGemHrAGv0 /pZT/+zKpruwHEjuyFCCPnWoDzgdslHRZhlHex9gXXlrlVMH7rVFEJJ6ISn7XuVucHfs yDJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aUhE442Chh0VE73xSyuaumajE/w5XLbPiioPvB11NGk=; b=dBEnf31oanquZrUorIkaStqxKi5jvHBoDOhA9U3mf5W4MkUYyzbG/oxdmULLM5Rb89 3PFNS4S4cAErXVg0HMgvgw5R77JY/a/OyG4Ylvxe/hhdDoVJCWSl4VriLavy0lWteq29 xbOOv7vbp4cxtlHCJEuTY75oJAZbivNVSq0o/haaXLzZ7qvXaNpMZ+zA9UQfq/QDxbUC bHgop7HTUZjM+Au/C0of4DTVobRCFVtPCVIreNx2DEV/zEaswgScHRzIlyw0uZ2MSHin pViVNIq7xQ5pEpnoTK8ZAlcwjSuQ04ftj4Kga6ZtXvcO5ktT0VyJiqthNEdwRPQewgmQ /hQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=7pjMO3GV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a17090302ce00b00153b2d16604si15308042plk.524.2022.03.24.03.11.02; Thu, 24 Mar 2022 03:11:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=7pjMO3GV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245733AbiCWRU2 (ORCPT + 99 others); Wed, 23 Mar 2022 13:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233723AbiCWRU2 (ORCPT ); Wed, 23 Mar 2022 13:20:28 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C9C369C2 for ; Wed, 23 Mar 2022 10:18:58 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id c11so1654837pgu.11 for ; Wed, 23 Mar 2022 10:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aUhE442Chh0VE73xSyuaumajE/w5XLbPiioPvB11NGk=; b=7pjMO3GVK+ZW7atuxQR6ijXrvohpgOt+NoFs1nGisTNVLrarZcCGq2tgaMGkkMkLRY CuIPLaDoebffi7nHz8osTESDZ+gfKymOObyQQX7IOhQG+YOrMW9MKZoKho3adIBED71/ QIStW4PjAz0uDneoiisP/VjaZBfJuPLqgrOqSlIR9GwH+RQhRKsWlg29R3TR7WijPof/ KatIfaWoSLxeTPF94f9/YIsFkTCGWY0YNJW5yUgDmR9eN0ZhCAlKQZADrml8qbC5Br7R 0GSQqyCI58nhVts3KB7gLmjLYLiuN56tYQk49MYjPoRhUfyuakalm1pqnnhodJ2rNEWG CmCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aUhE442Chh0VE73xSyuaumajE/w5XLbPiioPvB11NGk=; b=6HP9cUjNSnCH5IVbfXYXT+fVoVlspd0xddrhEVAv5qP4be09reVgCA+XAbSYPIHiue U3qLG0ivAmFUmRxYtCtnF3QxFGfULOrCcY05lqKndwjlG4tLNxY+y1xMfgtiUmVZGWp1 UKhafSFtP4SgvLOlxH2+ZW5AtWeHXIU+HErtBwScFtxdruzk9u9rFdfBD6LmtSZGlo6P OM69r/Pyrz4RrRfScWhwPIaMIKGZDJT2vcmR9e512Dj43c2ciW6LViPGNNzRP2bYyQia eqZUhC/bQVa1sjDyPU0aID8katYqUE1zPUbLv1j3iI93TRO7Hz3cLgulyz+vceGcuHMD QO6w== X-Gm-Message-State: AOAM530JnUaykXKpomkWMe7Wg656dxF4axhGq7/v2YGIXW+iHtmwk6gX 1xG/fQBluYGU8n5xccyAa4ZndhwRiQS8CQ== X-Received: by 2002:a62:1407:0:b0:4fa:6d31:1056 with SMTP id 7-20020a621407000000b004fa6d311056mr775126pfu.7.1648055937273; Wed, 23 Mar 2022 10:18:57 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id p128-20020a622986000000b004e1366dd88esm444524pfp.160.2022.03.23.10.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 10:18:56 -0700 (PDT) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , kernel test robot , Albert Ou , Atish Patra , Anup Patel , Damien Le Moal , devicetree@vger.kernel.org, Jisheng Zhang , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , Rob Herring Subject: [PATCH] RISC-V: Declare per cpu boot data as static Date: Wed, 23 Mar 2022 10:17:26 -0700 Message-Id: <20220323171726.1303706-1-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 The per cpu boot data is only used within the cpu_ops_sbi.c. It can be delcared as static. Fixes: 9a2451f18663 ("RISC-V: Avoid using per cpu array for ordered booting") Reported-by: kernel test robot Signed-off-by: Atish Patra --- arch/riscv/kernel/cpu_ops_sbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/cpu_ops_sbi.c b/arch/riscv/kernel/cpu_ops_sbi.c index dae29cbfe550..7f2ad008274f 100644 --- a/arch/riscv/kernel/cpu_ops_sbi.c +++ b/arch/riscv/kernel/cpu_ops_sbi.c @@ -21,7 +21,7 @@ const struct cpu_operations cpu_ops_sbi; * be invoked from multiple threads in parallel. Define a per cpu data * to handle that. */ -DEFINE_PER_CPU(struct sbi_hart_boot_data, boot_data); +static DEFINE_PER_CPU(struct sbi_hart_boot_data, boot_data); static int sbi_hsm_hart_start(unsigned long hartid, unsigned long saddr, unsigned long priv) -- 2.25.1