linux-next: build warnings after merge of the wireless-drivers-next tree
Subsystems (3)
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (x86_64 allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function 'iwl_parse_tlv_firmware':drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (iwlwifi_mod_params.enable_ini)
^drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here
default:
^~~~~~~drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function 'iwl_parse_fw_dbg_tlv':drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
iwl_fw_dbg_copy_tlv(trans, tlv, true);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here
default:
^~~~~~~
Introduced by commit
f14cda6f3b31 ("iwlwifi: trans: parse and store debug ini TLVs")
These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */
at the appropriate place to indicate that the fallthough is intended.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 22 lines · Stephen Rothwell
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function 'iwl_parse_tlv_firmware':drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: this statement may fall through [-Wimplicit-fallthrough=]if (iwlwifi_mod_params.enable_ini) ^ drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here default: ^~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function 'iwl_parse_fw_dbg_tlv': drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: this statement may fall through [-Wimplicit-fallthrough=] iwl_fw_dbg_copy_tlv(trans, tlv, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here default: ^~~~~~~Introduced by commit
Quoted 7 lines
f14cda6f3b31("iwlwifi: trans: parse and store debug ini TLVs")These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */at the appropriate place to indicate that the fallthough is intended.
I take it that -Wimplict-fallthrough is not enabled by default yet? So Dave and Linus won't see these warnings?
What I'm planning is to send a pull request to Dave today and fix these warnings in the next pull request. Does that sound good?
Signature · 1 line
Kalle Valo
Hi Kalle,
Quoted 3 lines · On Fri, 30 Nov 2018 06:33:47 +0200 Kalle Valo <[email protected]> wrote:
I take it that -Wimplict-fallthrough is not enabled by default yet? So Dave and Linus won't see these warnings?
Correct.
Quoted 2 lines
What I'm planning is to send a pull request to Dave today and fix these warnings in the next pull request. Does that sound good?
That sounds fine.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 7 lines · Stephen Rothwell
Hi Kalle,
Quoted 3 lines · On Fri, 30 Nov 2018 06:33:47 +0200 Kalle Valo <[email protected]> wrote:
I take it that -Wimplict-fallthrough is not enabled by default yet? So Dave and Linus won't see these warnings?
Quoted 6 lines
Correct.
Quoted 2 lines
What I'm planning is to send a pull request to Dave today and fix these warnings in the next pull request. Does that sound good?
That sounds fine.
Great, thanks for the confirmation. I'll then send the pull request today.
Signature · 1 line
Kalle Valo
Quoted 12 lines · Kalle Valo
Quoted 10 lines · Stephen Rothwell
Hi Kalle,
On Fri, 30 Nov 2018 06:33:47 +0200 Kalle Valo <[email protected]
Quoted 4 lines
wrote:
I take it that -Wimplict-fallthrough is not enabled by default yet? So
Dave and Linus won't see these warnings?Correct.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
What I'm planning is to send a pull request to Dave today and fix these
warnings in the next pull request. Does that sound good?That sounds fine.
Great, thanks for the confirmation. I'll then send the pull request today.
Just FYI, I enabled this by default in our internal tree so we will notice when it happens before sending the patch upstream.
--
Cheers,
Luca.
Quoted 17 lines · Luciano Coelho
Quoted 16 lines · Kalle Valo
Quoted 14 lines · Stephen Rothwell
Hi Kalle,
On Fri, 30 Nov 2018 06:33:47 +0200 Kalle Valo <[email protected]
Quoted 4 lines
wrote:
I take it that -Wimplict-fallthrough is not enabled by default yet? So
Dave and Linus won't see these warnings?Correct.
Quoted 3 lines
What I'm planning is to send a pull request to Dave today and fix these
warnings in the next pull request. Does that sound good?
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
That sounds fine.
Great, thanks for the confirmation. I'll then send the pull request today.
Just FYI, I enabled this by default in our internal tree so we will notice when it happens before sending the patch upstream.
That's really great.
Thanks, Luca
--
Gustavo
Hi all,
Quoted 21 lines · On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell <[email protected]>…
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function 'iwl_parse_tlv_firmware':drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: this statement may fall through [-Wimplicit-fallthrough=]if (iwlwifi_mod_params.enable_ini) ^ drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here default: ^~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function 'iwl_parse_fw_dbg_tlv': drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: this statement may fall through [-Wimplicit-fallthrough=] iwl_fw_dbg_copy_tlv(trans, tlv, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here default: ^~~~~~~Introduced by commit
Quoted 7 lines
f14cda6f3b31("iwlwifi: trans: parse and store debug ini TLVs")These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */at the appropriate place to indicate that the fallthough is intended.
I am still seeing these warnings (but in the net-next tree now) and I do not see a fix patch in the wireless-drivers-next tree.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 24 lines · Stephen Rothwell
Quoted 23 lines · On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell <[email protected]>…
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function 'iwl_parse_tlv_firmware':drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: this statement may fall through [-Wimplicit-fallthrough=]if (iwlwifi_mod_params.enable_ini) ^ drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here default: ^~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function 'iwl_parse_fw_dbg_tlv': drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: this statement may fall through [-Wimplicit-fallthrough=] iwl_fw_dbg_copy_tlv(trans, tlv, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here default: ^~~~~~~Introduced by commit
f14cda6f3b31("iwlwifi: trans: parse and store debug ini TLVs")
Quoted 8 lines
Quoted 5 lines
These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */at the appropriate place to indicate that the fallthough is intended.
I am still seeing these warnings (but in the net-next tree now) and I do not see a fix patch in the wireless-drivers-next tree.
Luca did submit a patch[1] for cfg80211 to fix those but I don't see any patches for iwlwifi (even in the one pending pull request he sent), not sure what happened. I know that Luca is already on holidays but adding Emmanuel, maybe he can help here?
[1] https://patchwork.kernel.org/patch/10732065/
Signature · 1 line
Kalle Valo
Quoted 39 lines
Quoted 1 line · Stephen Rothwell
On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell
Quoted 6 lines · <[email protected]> wrote:
Quoted 6 lines
After merging the wireless-drivers-next tree, today's linux-next build
(x86_64allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function'
iwl_parse_tlv_firmware':Quoted 1 line
Quoted 1 line
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: thisstatement may fall through [-Wimplicit-fallthrough=]
Quoted 6 lines
Quoted 6 lines
if (iwlwifi_mod_params.enable_ini) ^ drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here default: ^~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function'
iwl_parse_fw_dbg_tlv':Quoted 1 line
Quoted 1 line
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: thisstatement may fall through [-Wimplicit-fallthrough=]
Quoted 16 lines
Quoted 15 lines
iwl_fw_dbg_copy_tlv(trans, tlv, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here default: ^~~~~~~Introduced by commit
f14cda6f3b31("iwlwifi: trans: parse and store debug ini TLVs")These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */at the appropriate place to indicate that the fallthough is intended.
Quoted 8 lines
Quoted 2 lines
I am still seeing these warnings (but in the net-next tree now) and I do not see a fix patch in the wireless-drivers-next tree.
Luca did submit a patch[1] for cfg80211 to fix those but I don't see any patches for iwlwifi (even in the one pending pull request he sent), not sure what happened. I know that Luca is already on holidays but adding Emmanuel, maybe he can help here?
Just sent a patch.
Quoted 40 lines · Emmanuel
Quoted 40 lines
Quoted 1 line · Stephen Rothwell
On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell
Quoted 5 lines · <[email protected]> wrote:
Quoted 5 lines
After merging the wireless-drivers-next tree, today's linux-next build
(x86_64allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function'
iwl_parse_tlv_firmware':Quoted 1 line
Quoted 1 line
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: thisstatement may fall through [-Wimplicit-fallthrough=]
Quoted 6 lines
Quoted 6 lines
if (iwlwifi_mod_params.enable_ini) ^ drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here default: ^~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function'
iwl_parse_fw_dbg_tlv':Quoted 1 line
Quoted 1 line
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: thisstatement may fall through [-Wimplicit-fallthrough=]
Quoted 18 lines
Quoted 8 lines
iwl_fw_dbg_copy_tlv(trans, tlv, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here default: ^~~~~~~Introduced by commit
Quoted 7 lines
f14cda6f3b31("iwlwifi: trans: parse and store debug ini TLVs")These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */at the appropriate place to indicate that the fallthough is intended.
I am still seeing these warnings (but in the net-next tree now) and I do not see a fix patch in the wireless-drivers-next tree.
Quoted 7 lines
Quoted 5 lines
Luca did submit a patch[1] for cfg80211 to fix those but I don't see any patches for iwlwifi (even in the one pending pull request he sent), not sure what happened. I know that Luca is already on holidays but adding Emmanuel, maybe he can help here?
Just sent a patch.
Those patches were still queued for upstreaming and I didn't think they were that urgent, so I didn't pick them.
--
Luca.
Quoted 42 lines · Emmanuel
Quoted 42 lines
Quoted 1 line · Stephen Rothwell
On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell
Quoted 6 lines · <[email protected]> wrote:
Quoted 6 lines
After merging the wireless-drivers-next tree, today's linux-next build
(x86_64allmodconfig) produced these warnings:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function'
iwl_parse_tlv_firmware':Quoted 1 line
Quoted 1 line
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1098:7: warning: thisstatement may fall through [-Wimplicit-fallthrough=]
Quoted 6 lines
Quoted 6 lines
if (iwlwifi_mod_params.enable_ini) ^ drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1100:3: note: here default: ^~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c: In function'
iwl_parse_fw_dbg_tlv':Quoted 1 line
Quoted 1 line
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:203:4: warning: thisstatement may fall through [-Wimplicit-fallthrough=]
Quoted 18 lines
Quoted 8 lines
iwl_fw_dbg_copy_tlv(trans, tlv, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:204:3: note: here default: ^~~~~~~Introduced by commit
Quoted 7 lines
f14cda6f3b31("iwlwifi: trans: parse and store debug ini TLVs")These are noted because I use -Wimplict-fallthrough
The warnings can be suppressed by adding a comment like
/* fall through */at the appropriate place to indicate that the fallthough is intended.
I am still seeing these warnings (but in the net-next tree now) and I do not see a fix patch in the wireless-drivers-next tree.
Quoted 7 lines
Quoted 5 lines
Luca did submit a patch[1] for cfg80211 to fix those but I don't see any patches for iwlwifi (even in the one pending pull request he sent), not sure what happened. I know that Luca is already on holidays but adding Emmanuel, maybe he can help here?
Just sent a patch.
I see it thanks:
https://patchwork.kernel.org/patch/10736967/
I'll try to get it to tomorrow's linux-next build.
Signature · 1 line
Kalle Valo