diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-19 16:20:42 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-03-19 16:37:56 +0100 |
commit | 0e3edd94448001a33ed7f8af2179cd4a280348a2 (patch) | |
tree | 3bf0a87ed1f0b7dd1a937d39a78c25f9d020f546 /drivers/base | |
parent | Linux 5.1-rc1 (diff) | |
download | linux-0e3edd94448001a33ed7f8af2179cd4a280348a2.tar.xz linux-0e3edd94448001a33ed7f8af2179cd4a280348a2.zip |
drivers: base: swnode: Make two functions static
Fix sparse warning:
drivers/base/swnode.c:475:22: warning: symbol 'software_node_get_parent' was not declared. Should it be static?
drivers/base/swnode.c:484:22: warning: symbol 'software_node_get_next_child' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/swnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c index 1fad9291f6aa..7fc5a18e02ad 100644 --- a/drivers/base/swnode.c +++ b/drivers/base/swnode.c @@ -472,7 +472,7 @@ static int software_node_read_string_array(const struct fwnode_handle *fwnode, val, nval); } -struct fwnode_handle * +static struct fwnode_handle * software_node_get_parent(const struct fwnode_handle *fwnode) { struct software_node *swnode = to_software_node(fwnode); @@ -481,7 +481,7 @@ software_node_get_parent(const struct fwnode_handle *fwnode) NULL; } -struct fwnode_handle * +static struct fwnode_handle * software_node_get_next_child(const struct fwnode_handle *fwnode, struct fwnode_handle *child) { |