[PATCH] fsi: core: make fsi_master_class static

Joel Stanley joel at jms.id.au
Wed Nov 6 15:33:22 AEDT 2019


On Wed, 6 Nov 2019 at 04:32, zhengbin <zhengbin13 at huawei.com> wrote:
>
> Fix sparse warnings:
>
> drivers/fsi/fsi-core.c:1275:14: warning: symbol 'fsi_master_class' was not declared. Should it be static?
>
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: zhengbin <zhengbin13 at huawei.com>

Thanks for the patch. This was already reported by the 0day bot, and
I've incorporated a fix.

Cheers,

Joel

> ---
>  drivers/fsi/fsi-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c
> index e02ebcb..8244da8 100644
> --- a/drivers/fsi/fsi-core.c
> +++ b/drivers/fsi/fsi-core.c
> @@ -1272,7 +1272,7 @@ static struct attribute *master_attrs[] = {
>
>  ATTRIBUTE_GROUPS(master);
>
> -struct class fsi_master_class = {
> +static struct class fsi_master_class = {
>         .name = "fsi-master",
>         .dev_groups = master_groups,
>  };
> --
> 2.7.4
>


More information about the linux-fsi mailing list