Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

YueHaibing and committed by
Rafael J. Wysocki
0e3edd94 9e98c678

+2 -2
+2 -2
drivers/base/swnode.c
··· 472 472 val, nval); 473 473 } 474 474 475 - struct fwnode_handle * 475 + static struct fwnode_handle * 476 476 software_node_get_parent(const struct fwnode_handle *fwnode) 477 477 { 478 478 struct software_node *swnode = to_software_node(fwnode); ··· 481 481 NULL; 482 482 } 483 483 484 - struct fwnode_handle * 484 + static struct fwnode_handle * 485 485 software_node_get_next_child(const struct fwnode_handle *fwnode, 486 486 struct fwnode_handle *child) 487 487 {