Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1227262pxb; Fri, 1 Apr 2022 07:55:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDBn+TsqmKKrnW8dd1CWMObxyvTmKYN+WPSj7b3cRoLoBV24EvbZlpV8Hhy2tJEhfbMJrA X-Received: by 2002:a05:6402:42d4:b0:412:c26b:789 with SMTP id i20-20020a05640242d400b00412c26b0789mr21467045edc.232.1648824959065; Fri, 01 Apr 2022 07:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648824959; cv=none; d=google.com; s=arc-20160816; b=zghCPeDcrsHJhx+Kdzb6p9cORVqV9xVefKxYTh6q3P+vzNaKU0k2CHIvRCQtnjkjro 985iZiX5NJeFF09sUWEFDjJkJnDSgNyyoQNt1rJlE9dRqiWtxWdpI85SSCfTrssV/+zo 7SH4IyqsLBQ3bF28Wx/H0oSs/J/Sm6hMB2UtfHtUt7hiCRnPcExjNr6OeQdJhTX/9kET vIYbyKYEPdUCmk5nBrM2hbEy9ecFwkuMqkMFWBhjkf+qu4KvazaUZeplOO/32JojA4QT LevT9ezxCMSUIxsxV4CMi6mMUUkU1ImwCvyI67FbtQVA9sa8PqPhdhpIvoC2BY1HJ52Z zPpw== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=bnq3RGPMzBMV/g9aWknvx9FGXd6IFr5H5AAWOs4ymHk=; b=0Vl8jCLdSuqbY7w9EM7M8X5CGvS+Y6oO9vOL6Acv2o6NdR5gysEKnYVPzYYNXbrWoG xEE8Cx461Ay3b21+KXjF25yJVlyGgINJY0S8X3PK1oKOw6EWf9odCnRioFJ8r+ylbJoT IpZ7OMFiwVQUomwbhwAy/TooX0EKitRQqMi1WaSIcwHza1MiK/F9t+g+fth3lItWf6L9 /ti8uNL2MNr18hE+dbKhrYYCavnWctAhZty/cd5C3vAdVddSCCtKZOBIF96KhZKSznN0 ggFIJKKxnSCIqYFh1sL4zvOwZ/0iyu+pdQEhipq6zIcfeM2oO3wnVl6lBowud/yHR/np A7XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=1uYsPp4T; 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 k9-20020a17090666c900b006df87d6083asi1609248ejp.376.2022.04.01.07.55.32; Fri, 01 Apr 2022 07:55:59 -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=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=1uYsPp4T; 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 S241417AbiCaU36 (ORCPT + 99 others); Thu, 31 Mar 2022 16:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235256AbiCaU34 (ORCPT ); Thu, 31 Mar 2022 16:29:56 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52A4F2414EB for ; Thu, 31 Mar 2022 13:28:08 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id l4-20020a17090a49c400b001c6840df4a3so580555pjm.0 for ; Thu, 31 Mar 2022 13:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=bnq3RGPMzBMV/g9aWknvx9FGXd6IFr5H5AAWOs4ymHk=; b=1uYsPp4Tl1AUltqW3P44nhWS7GvP4CJgKOhn+4VSW6tjebojOna8+DqcXGZ9k0L/qg /kFWpO1A9VCxXURXGLxWREhOlFDrf7SGsxEcHzf+/1uE2v7LBC1dWVqweOKhApxLgw9D amggZOnWK8/4wpWGOGhiK4cjY2SQMXyCD0VEruU0dGq6NnWYK88rwYoSegTMJzw1+tk3 HxcB/8JTpf60c1hpvFHq7hYKJ2LX9yB1v55R/v8Dni9DydCTumhK63hi5FUT8HXbvn5w bDcJd/qTfwfOiArpTbcdXfkKKBEw5RYSV5PG8FRRIY48vM4BJn5dkI4bFNb4KeQt435X zj9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=bnq3RGPMzBMV/g9aWknvx9FGXd6IFr5H5AAWOs4ymHk=; b=ozqmi4Rf4ZAo9WUMw5Z/cf7sJ54/J45QjWUKmdjkv0kGyO9ES1HSfRXPhU8P1OGS9g AAxsRkVIHFF4cyLZLsHSOCrFDrZD6p9Hw2LeOCKyjLtAs/Wf5cSR7OOagi+1bqAFpzBF qhlDU2WK+YGdOwZI/V8l4TxoFZ6mZ16HihrUxMT8zUccSolvQ16CQEpoM5BudbghEr7j iEYwnm6kVwwhl1L9bc1QJyAjCsCAUG3OkpoZUo/lHg+WjS65Mtzyo7XZR2FAJL16Vzad FFhYlDBFbuBVbunLg6NJ4Ycj/Fsjy+dGYnX3JV3GdPepOFLh4u8m4EDGaGboOs/Mj5eY JbUw== X-Gm-Message-State: AOAM533q5DR91stSwnJI8Bw9aLQTBVoy0R6ABnhSEeSSbfkR73dYDnmI h45Sxsqm76DGXk8fh0GFjwW3d5imCozMNA== X-Received: by 2002:a17:902:f544:b0:154:5ecb:eb24 with SMTP id h4-20020a170902f54400b001545ecbeb24mr7143398plf.11.1648758487456; Thu, 31 Mar 2022 13:28:07 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id y13-20020a17090a390d00b001c995e0a481sm203407pjb.30.2022.03.31.13.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 13:28:06 -0700 (PDT) Date: Thu, 31 Mar 2022 13:28:06 -0700 (PDT) X-Google-Original-Date: Thu, 31 Mar 2022 13:04:31 PDT (-0700) Subject: Re: [PATCH] RISC-V: Declare per cpu boot data as static In-Reply-To: <20220323171726.1303706-1-atishp@rivosinc.com> CC: linux-kernel@vger.kernel.org, Atish Patra , lkp@intel.com, aou@eecs.berkeley.edu, atishp@atishpatra.org, anup@brainfault.org, damien.lemoal@wdc.com, devicetree@vger.kernel.org, jszhang@kernel.org, krzysztof.kozlowski@canonical.com, linux-riscv@lists.infradead.org, Paul Walmsley , robh+dt@kernel.org From: Palmer Dabbelt To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed 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 On Wed, 23 Mar 2022 10:17:26 PDT (-0700), Atish Patra wrote: > 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) Thanks, this is on for-next.