mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chris Redpath <chris.redpath@arm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Guenter Roeck <groeck@chromium.org>,
	Patrick Bellasi <patrick.bellasi@arm.com>
Subject: [RFC PATCH jsarha] ANDROID: sched/fair: __pcpu_scope_eenv_cache can be static
Date: Tue, 19 Apr 2022 20:21:44 +0800	[thread overview]
Message-ID: <Yl6pWPuKQxlB99D7@22daf826a52b> (raw)
In-Reply-To: <202204192047.g1X4yydR-lkp@intel.com>

kernel/sched/fair.c:6738:1: warning: symbol '__pcpu_scope_eenv_cache' was not declared. Should it be static?

Fixes: 0d2a194c5434 ("ANDROID: sched/fair: re-factor energy_diff to use a single (extensible) energy_env")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 kernel/sched/fair.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index dd2b286ea4905..f7a382a602c86 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6735,7 +6735,7 @@ static bool cpu_overutilized(int cpu)
 	return (capacity_of(cpu) * 1024) < (cpu_util(cpu) * capacity_margin);
 }
 
-DEFINE_PER_CPU(struct energy_env, eenv_cache);
+static DEFINE_PER_CPU(struct energy_env, eenv_cache);
 
 /* kernels often have NR_CPUS defined to be much
  * larger than exist in practise on booted systems.

      reply	other threads:[~2022-04-19 12:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-19 12:31 [jsarha:topic/cros-sof-v4.14-rebase 1455/9999] kernel/sched/fair.c:6738:1: sparse: sparse: symbol '__pcpu_scope_eenv_cache' was not declared. Should it be static? kernel test robot
2022-04-19 12:21 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yl6pWPuKQxlB99D7@22daf826a52b \
    --to=lkp@intel.com \
    --cc=chris.redpath@arm.com \
    --cc=groeck@chromium.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrick.bellasi@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®