drivers/of/base.c: Fix sparse warnings
drivers/of/base.c:70:20: warning: symbol 'root_node' was not declared. Should it be static? drivers/of/base.c:72:20: warning: symbol 'of_aliases' was not declared. Should it be static? drivers/of/base.c:1724:20: warning: symbol 'of_chosen' was not declared. Should it be static? drivers/of/base.c:1725:12: warning: symbol 'of_model' was not declared. Should it be static? Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
132b10bc4a
commit
409df4db89
|
@ -67,9 +67,9 @@ struct alias_prop {
|
||||||
|
|
||||||
static LIST_HEAD(aliases_lookup);
|
static LIST_HEAD(aliases_lookup);
|
||||||
|
|
||||||
struct device_node *root_node;
|
static struct device_node *root_node;
|
||||||
|
|
||||||
struct device_node *of_aliases;
|
static struct device_node *of_aliases;
|
||||||
|
|
||||||
#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
|
#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
|
||||||
#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1
|
#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1
|
||||||
|
@ -1721,8 +1721,8 @@ int of_add_memory(struct device_node *node, bool dump)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct device_node *of_chosen;
|
static struct device_node *of_chosen;
|
||||||
const char *of_model;
|
static const char *of_model;
|
||||||
|
|
||||||
const char *of_get_model(void)
|
const char *of_get_model(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue