2020-09-29 06:05:06

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the tty tree

Hi all,

After merging the tty tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:

drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe':
drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable 'ret' [-Wunused-variable]
806 | int ret, id, irq;
| ^~~

Introduced by commit

b63537020db3 ("serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()")

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2020-09-29 06:45:19

by Qinglang Miao

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the tty tree



在 2020/9/29 14:01, Stephen Rothwell 写道:
> Hi all,
>
> After merging the tty tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
>
> drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe':
> drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable 'ret' [-Wunused-variable]
> 806 | int ret, id, irq;
> | ^~~
>
> Introduced by commit
>
> b63537020db3 ("serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()")
>
Hi Greg,

Sorry about the noise for remaining the unused variable 'ret' in commit
b63537020db3.

Should I send another patch to clean up this warning or send another v2
patch instead?

Thanks.

2020-09-29 07:34:08

by Greg KH

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the tty tree

On Tue, Sep 29, 2020 at 02:41:27PM +0800, miaoqinglang wrote:
>
>
> 在 2020/9/29 14:01, Stephen Rothwell 写道:
> > Hi all,
> >
> > After merging the tty tree, today's linux-next build (x86_64 allmodconfig)
> > produced this warning:
> >
> > drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe':
> > drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable 'ret' [-Wunused-variable]
> > 806 | int ret, id, irq;
> > | ^~~
> >
> > Introduced by commit
> >
> > b63537020db3 ("serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()")
> >
> Hi Greg,
>
> Sorry about the noise for remaining the unused variable 'ret' in commit
> b63537020db3.
>
> Should I send another patch to clean up this warning or send another v2
> patch instead?

A fix-up patch would be best, as this is already in my tree.

thanks,

greg k-h

2020-09-29 08:59:41

by Qinglang Miao

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the tty tree



在 2020/9/29 15:32, Greg KH 写道:
> On Tue, Sep 29, 2020 at 02:41:27PM +0800, miaoqinglang wrote:
>>
>>
>> 在 2020/9/29 14:01, Stephen Rothwell 写道:
>>> Hi all,
>>>
>>> After merging the tty tree, today's linux-next build (x86_64 allmodconfig)
>>> produced this warning:
>>>
>>> drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe':
>>> drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable 'ret' [-Wunused-variable]
>>> 806 | int ret, id, irq;
>>> | ^~~
>>>
>>> Introduced by commit
>>>
>>> b63537020db3 ("serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()")
>>>
>> Hi Greg,
>>
>> Sorry about the noise for remaining the unused variable 'ret' in commit
>> b63537020db3.
>>
>> Should I send another patch to clean up this warning or send another v2
>> patch instead?
>
> A fix-up patch would be best, as this is already in my tree.
>
> thanks,
>
> greg k-h
> .A fix-up patch has been sent.
Thanks
>