Skip to content

Commit 5bf19d0

Browse files
intel-lab-lkprafaeljw
authored andcommitted
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: 3759ec6 ("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>
1 parent 46501ad commit 5bf19d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/powercap/dtpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static struct dtpm *dtpm_setup_dt(const struct dtpm_node *hierarchy,
470470

471471
typedef struct dtpm * (*dtpm_node_callback_t)(const struct dtpm_node *, struct dtpm *);
472472

473-
dtpm_node_callback_t dtpm_node_callback[] = {
473+
static dtpm_node_callback_t dtpm_node_callback[] = {
474474
[DTPM_NODE_VIRTUAL] = dtpm_setup_virtual,
475475
[DTPM_NODE_DT] = dtpm_setup_dt,
476476
};

0 commit comments

Comments
 (0)