staging: most: core: make functions print_links and most_match static
authorColin Ian King <colin.king@canonical.com>
Sun, 10 Dec 2017 23:20:58 +0000 (23:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2017 11:50:33 +0000 (12:50 +0100)
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>
drivers/staging/most/core.c

index c1fba5ba7541ae89919ac96a63db2c44977c1a66..5ba2cd5ec1b0b6bf205bffedc210d25a46054661 100644 (file)
@@ -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;