diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-12-10 23:20:58 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-13 12:50:33 +0100 |
commit | 845c31de4ce7e2329b93fec9b54f1121240d0e5f (patch) | |
tree | 5f8f4b9131882173dd203bfd4505498246fdca4c /drivers/staging/most | |
parent | 5826e028de7f2db8d8deebf2102cd79086729200 (diff) |
staging: most: core: make functions print_links and most_match static
The functions print_links and most_match static are local to the source
and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'print_links' was not declared. Should it be static?
symbol 'most_match' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index c1fba5ba7541..5ba2cd5ec1b0 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -534,7 +534,7 @@ struct show_links_data { char *buf; }; -int print_links(struct device *dev, void *data) +static int print_links(struct device *dev, void *data) { struct show_links_data *d = data; int offs = d->offs; @@ -803,7 +803,7 @@ static const struct attribute_group *mc_attr_groups[] = { NULL, }; -int most_match(struct device *dev, struct device_driver *drv) +static int most_match(struct device *dev, struct device_driver *drv) { if (!strcmp(dev_name(dev), "most")) return 0; |