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>
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;
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;