* [PATCH 1/2] firewire: annotate implicit fall through
@ 2019-01-14 20:42 Mathieu Malaterre
2019-01-14 20:42 ` [PATCH 2/2] " Mathieu Malaterre
2019-03-13 20:28 ` [PATCH 1/2] " Mathieu Malaterre
0 siblings, 2 replies; 5+ messages in thread
From: Mathieu Malaterre @ 2019-01-14 20:42 UTC (permalink / raw)
To: Stefan Richter; +Cc: Mathieu Malaterre, linux1394-devel, linux-kernel
There is a plan to build the kernel with -Wimplicit-fallthrough and
this place in the code produced a warning (W=1).
In this particular case rewrote the comment to start with the string "fall
through", so as to match the regular expression expected by GCC.
This commit remove the following warning:
drivers/firewire/core-iso.c:308:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
drivers/firewire/core-iso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c
index 35e784cffc23..d2d50bda5a5f 100644
--- a/drivers/firewire/core-iso.c
+++ b/drivers/firewire/core-iso.c
@@ -308,7 +308,7 @@ static int manage_channel(struct fw_card *card, int irm_id, int generation,
if ((data[0] & bit) == (data[1] & bit))
continue;
- /* 1394-1995 IRM, fall through to retry. */
+ /* fall through - 1394-1995 IRM to retry. */
default:
if (retry) {
retry--;
--
2.19.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] firewire: annotate implicit fall through
2019-01-14 20:42 [PATCH 1/2] firewire: annotate implicit fall through Mathieu Malaterre
@ 2019-01-14 20:42 ` Mathieu Malaterre
2019-03-13 20:28 ` [PATCH 1/2] " Mathieu Malaterre
1 sibling, 0 replies; 5+ messages in thread
From: Mathieu Malaterre @ 2019-01-14 20:42 UTC (permalink / raw)
To: Stefan Richter; +Cc: Mathieu Malaterre, linux1394-devel, linux-kernel
There is a plan to build the kernel with -Wimplicit-fallthrough and
this place in the code produced a warning (W=1).
In this particular case add a ‘-’ so as to match the regular expression
expected by GCC.
This commit remove the following warning:
/drivers/firewire/core-device.c: In function 'set_broadcast_channel':
../drivers/firewire/core-device.c:969:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (data & cpu_to_be32(1 << 31)) {
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
drivers/firewire/core-device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c
index 7c2eed76011e..e41d55b04940 100644
--- a/drivers/firewire/core-device.c
+++ b/drivers/firewire/core-device.c
@@ -970,7 +970,7 @@ static void set_broadcast_channel(struct fw_device *device, int generation)
device->bc_implemented = BC_IMPLEMENTED;
break;
}
- /* else fall through to case address error */
+ /* else fall through - to case address error */
case RCODE_ADDRESS_ERROR:
device->bc_implemented = BC_UNIMPLEMENTED;
}
--
2.19.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] firewire: annotate implicit fall through
2019-01-14 20:42 [PATCH 1/2] firewire: annotate implicit fall through Mathieu Malaterre
2019-01-14 20:42 ` [PATCH 2/2] " Mathieu Malaterre
@ 2019-03-13 20:28 ` Mathieu Malaterre
2019-03-13 20:39 ` Gustavo A. R. Silva
1 sibling, 1 reply; 5+ messages in thread
From: Mathieu Malaterre @ 2019-03-13 20:28 UTC (permalink / raw)
To: Stefan Richter; +Cc: linux1394-devel, LKML, Gustavo A. R. Silva
ping ?
On Mon, Jan 14, 2019 at 9:42 PM Mathieu Malaterre <malat@debian.org> wrote:
>
> There is a plan to build the kernel with -Wimplicit-fallthrough and
> this place in the code produced a warning (W=1).
>
> In this particular case rewrote the comment to start with the string "fall
> through", so as to match the regular expression expected by GCC.
>
> This commit remove the following warning:
>
> drivers/firewire/core-iso.c:308:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
>
> Signed-off-by: Mathieu Malaterre <malat@debian.org>
> ---
> drivers/firewire/core-iso.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c
> index 35e784cffc23..d2d50bda5a5f 100644
> --- a/drivers/firewire/core-iso.c
> +++ b/drivers/firewire/core-iso.c
> @@ -308,7 +308,7 @@ static int manage_channel(struct fw_card *card, int irm_id, int generation,
> if ((data[0] & bit) == (data[1] & bit))
> continue;
>
> - /* 1394-1995 IRM, fall through to retry. */
> + /* fall through - 1394-1995 IRM to retry. */
> default:
> if (retry) {
> retry--;
> --
> 2.19.2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] firewire: annotate implicit fall through
2019-03-13 20:28 ` [PATCH 1/2] " Mathieu Malaterre
@ 2019-03-13 20:39 ` Gustavo A. R. Silva
2019-03-13 20:51 ` Mathieu Malaterre
0 siblings, 1 reply; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-03-13 20:39 UTC (permalink / raw)
To: Mathieu Malaterre, Stefan Richter; +Cc: linux1394-devel, LKML
Mathieu,
On 3/13/19 3:28 PM, Mathieu Malaterre wrote:
> ping ?
>
I have sent the following patch to address all these warnings in
firewire:
https://lore.kernel.org/patchwork/patch/1040737/
and, as this is being ignored, I'll add it to my tree for 5.2.
Thanks
--
Gustavo
> On Mon, Jan 14, 2019 at 9:42 PM Mathieu Malaterre <malat@debian.org> wrote:
>>
>> There is a plan to build the kernel with -Wimplicit-fallthrough and
>> this place in the code produced a warning (W=1).
>>
>> In this particular case rewrote the comment to start with the string "fall
>> through", so as to match the regular expression expected by GCC.
>>
>> This commit remove the following warning:
>>
>> drivers/firewire/core-iso.c:308:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
>>
>> Signed-off-by: Mathieu Malaterre <malat@debian.org>
>> ---
>> drivers/firewire/core-iso.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c
>> index 35e784cffc23..d2d50bda5a5f 100644
>> --- a/drivers/firewire/core-iso.c
>> +++ b/drivers/firewire/core-iso.c
>> @@ -308,7 +308,7 @@ static int manage_channel(struct fw_card *card, int irm_id, int generation,
>> if ((data[0] & bit) == (data[1] & bit))
>> continue;
>>
>> - /* 1394-1995 IRM, fall through to retry. */
>> + /* fall through - 1394-1995 IRM to retry. */
>> default:
>> if (retry) {
>> retry--;
>> --
>> 2.19.2
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] firewire: annotate implicit fall through
2019-03-13 20:39 ` Gustavo A. R. Silva
@ 2019-03-13 20:51 ` Mathieu Malaterre
0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Malaterre @ 2019-03-13 20:51 UTC (permalink / raw)
To: Gustavo A. R. Silva; +Cc: Stefan Richter, linux1394-devel, LKML
On Wed, Mar 13, 2019 at 9:39 PM Gustavo A. R. Silva
<gustavo@embeddedor.com> wrote:
>
> Mathieu,
>
> On 3/13/19 3:28 PM, Mathieu Malaterre wrote:
> > ping ?
> >
>
> I have sent the following patch to address all these warnings in
> firewire:
>
> https://lore.kernel.org/patchwork/patch/1040737/
>
> and, as this is being ignored, I'll add it to my tree for 5.2.
Good ! I was only starring at -next
Thanks
> Thanks
> --
> Gustavo
>
> > On Mon, Jan 14, 2019 at 9:42 PM Mathieu Malaterre <malat@debian.org> wrote:
> >>
> >> There is a plan to build the kernel with -Wimplicit-fallthrough and
> >> this place in the code produced a warning (W=1).
> >>
> >> In this particular case rewrote the comment to start with the string "fall
> >> through", so as to match the regular expression expected by GCC.
> >>
> >> This commit remove the following warning:
> >>
> >> drivers/firewire/core-iso.c:308:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
> >>
> >> Signed-off-by: Mathieu Malaterre <malat@debian.org>
> >> ---
> >> drivers/firewire/core-iso.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c
> >> index 35e784cffc23..d2d50bda5a5f 100644
> >> --- a/drivers/firewire/core-iso.c
> >> +++ b/drivers/firewire/core-iso.c
> >> @@ -308,7 +308,7 @@ static int manage_channel(struct fw_card *card, int irm_id, int generation,
> >> if ((data[0] & bit) == (data[1] & bit))
> >> continue;
> >>
> >> - /* 1394-1995 IRM, fall through to retry. */
> >> + /* fall through - 1394-1995 IRM to retry. */
> >> default:
> >> if (retry) {
> >> retry--;
> >> --
> >> 2.19.2
> >>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-13 20:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14 20:42 [PATCH 1/2] firewire: annotate implicit fall through Mathieu Malaterre
2019-01-14 20:42 ` [PATCH 2/2] " Mathieu Malaterre
2019-03-13 20:28 ` [PATCH 1/2] " Mathieu Malaterre
2019-03-13 20:39 ` Gustavo A. R. Silva
2019-03-13 20:51 ` Mathieu Malaterre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).