Re: [PATCH net-next] Bluetooth: Mark expected switch fall-throughs

From: Gustavo A. R. Silva
Date: Wed Jan 23 2019 - 13:05:05 EST




On 1/23/19 11:46 AM, Marcel Holtmann wrote:
> Hi Gustavo,
>
>> In preparation to enabling -Wimplicit-fallthrough, mark switch cases
>> where we are expecting to fall through.
>>
>> This patch fixes the following warnings:
>>
>> net/bluetooth/rfcomm/core.c:479:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
>> net/bluetooth/l2cap_core.c:4223:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
>>
>> Warning level 3 was used: -Wimplicit-fallthrough=3
>>
>> This patch is part of the ongoing efforts to enabling
>> -Wimplicit-fallthrough.
>>
>> Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
>> ---
>> net/bluetooth/l2cap_core.c | 1 +
>> net/bluetooth/rfcomm/core.c | 1 +
>> 2 files changed, 2 insertions(+)
>
> patch has been applied to bluetooth-next tree.
>

Thank you, Marcel.

--
Gustavo