[PATCH] ibmvnic: remove default label from to_string switch

David Miller davem at davemloft.net
Tue May 4 06:47:21 AEST 2021


From: Lijun Pan <lijunp213 at gmail.com>
Date: Mon, 3 May 2021 13:21:00 -0500

> On Mon, May 3, 2021 at 5:54 AM Michal Suchanek <msuchanek at suse.de> wrote:
>>
>> This way the compiler warns when a new value is added to the enum but
>> not the string transation like:
> 
> s/transation/translation/
> 
> This trick works.
> Since the original code does not generate gcc warnings/errors, should
> this patch be sent to net-next as an improvement?

Yes.


More information about the Linuxppc-dev mailing list