Skip to content

Commit 0e3edd9

Browse files
YueHaibingrafaeljw
authored andcommitted
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>
1 parent 9e98c67 commit 0e3edd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/swnode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ static int software_node_read_string_array(const struct fwnode_handle *fwnode,
472472
val, nval);
473473
}
474474

475-
struct fwnode_handle *
475+
static struct fwnode_handle *
476476
software_node_get_parent(const struct fwnode_handle *fwnode)
477477
{
478478
struct software_node *swnode = to_software_node(fwnode);
@@ -481,7 +481,7 @@ software_node_get_parent(const struct fwnode_handle *fwnode)
481481
NULL;
482482
}
483483

484-
struct fwnode_handle *
484+
static struct fwnode_handle *
485485
software_node_get_next_child(const struct fwnode_handle *fwnode,
486486
struct fwnode_handle *child)
487487
{

0 commit comments

Comments
 (0)