Skip to content

Commit

Permalink
staging: most: configfs: Make mdev_link_list static
Browse files Browse the repository at this point in the history
Fix sparse warning:

drivers/staging/most/configfs.c:34:18: warning:
 symbol 'mdev_link_list' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
YueHaibing authored and Greg Kroah-Hartman committed Apr 19, 2019
1 parent 8bedf93 commit a5c7950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/most/configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct mdev_link {
char comp_params[PAGE_SIZE];
};

struct list_head mdev_link_list;
static struct list_head mdev_link_list;

static int set_cfg_buffer_size(struct mdev_link *link)
{
Expand Down

0 comments on commit a5c7950

Please sign in to comment.