forked from Minki/linux
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: 3759ec678e
("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>
This commit is contained in:
parent
46501add15
commit
5bf19d0aa3
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user