From: kernel test robot Date: Tue, 1 Mar 2022 03:28:54 +0000 (+0800) Subject: powercap: DTPM: dtpm_node_callback[] can be static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5bf19d0aa3d2f22d4c050c030f436ab97b7e6f1e;p=linux.git 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 Signed-off-by: kernel test robot Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index ec931a06d90ae..41010dec069dc 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, };