summaryrefslogtreecommitdiffstats
path: root/drivers/powercap
diff options
context:
space:
mode:
authorkernel test robot <lkp@intel.com>2022-03-01 04:28:54 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-03-01 18:57:37 +0100
commit5bf19d0aa3d2f22d4c050c030f436ab97b7e6f1e (patch)
tree37c032b1908e9d6549332f59d990ca1c7092ac12 /drivers/powercap
parentMerge tag 'dtpm-v5.18' of https://git.linaro.org/people/daniel.lezcano/linux (diff)
downloadlinux-5bf19d0aa3d2f22d4c050c030f436ab97b7e6f1e.tar.xz
linux-5bf19d0aa3d2f22d4c050c030f436ab97b7e6f1e.zip
powercap: DTPM: dtpm_node_callback[] can be static
drivers/powercap/dtpm.c:525:22: warning: symbol 'dtpm_node_callback' was not declared. Should it be static? Fixes: 3759ec678e89 ("powercap/drivers/dtpm: Add hierarchy creation") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/powercap')
-rw-r--r--drivers/powercap/dtpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c
index ec931a06d90a..41010dec069d 100644
--- a/drivers/powercap/dtpm.c
+++ b/drivers/powercap/dtpm.c
@@ -470,7 +470,7 @@ static struct dtpm *dtpm_setup_dt(const struct dtpm_node *hierarchy,
typedef struct dtpm * (*dtpm_node_callback_t)(const struct dtpm_node *, struct dtpm *);
-dtpm_node_callback_t dtpm_node_callback[] = {
+static dtpm_node_callback_t dtpm_node_callback[] = {
[DTPM_NODE_VIRTUAL] = dtpm_setup_virtual,
[DTPM_NODE_DT] = dtpm_setup_dt,
};