Skip to contentSkip to conversation

linux-next: build warning after merge of the mfd tree

DISCUSSION Keerthy 3 participants 3 messages Jun 27, 2019 – Jul 2, 2019 1 message not in the archive Linux-next tree

lore
Share & tools
lore

Keerthy

author
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Stephen Rothwell

Hi Lee,

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

drivers/regulator/lp87565-regulator.c: In function 'lp87565_regulator_probe':
drivers/regulator/lp87565-regulator.c:182:11: warning: this statement may fall through [-Wimplicit-fallthrough=]

    max_idx = LP87565_BUCK_3210;

Missed adding a break here. Can i send a patch on top of linux-next?

Quoted 14 lines
    ~~~~~~~~^~~~~~~~~~~~~~~~~~~
drivers/regulator/lp87565-regulator.c:183:2: note: here
   default:
   ^~~~~~~

Introduced by commit

   7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")

I get these warnings because I am building with -Wimplicit-fallthrough in attempt to catch new additions early. The gcc warning can be turned off by adding a /* fall through */ comment at the point the fall through happens (assuming that the fall through is intentional).

#2 lore raw

Hi all,

Quoted 4 lines · On Thu, 27 Jun 2019 11:29:18 +0530 Keerthy <[email protected]> wrote:
Quoted 2 lines · Stephen Rothwell

Hi Lee,

Quoted 23 lines
Quoted 6 lines

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

drivers/regulator/lp87565-regulator.c: In function 'lp87565_regulator_probe':
drivers/regulator/lp87565-regulator.c:182:11: warning: this statement may fall through [-Wimplicit-fallthrough=]

    max_idx = LP87565_BUCK_3210;  

Missed adding a break here. Can i send a patch on top of linux-next?

Quoted 14 lines
    ~~~~~~~~^~~~~~~~~~~~~~~~~~~
drivers/regulator/lp87565-regulator.c:183:2: note: here
   default:
   ^~~~~~~

Introduced by commit

   7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")

I get these warnings because I am building with -Wimplicit-fallthrough in attempt to catch new additions early. The gcc warning can be turned off by adding a /* fall through */ comment at the point the fall through happens (assuming that the fall through is intentional).

I am still seeing this warning ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 25 lines · Stephen Rothwell

Hi all,

Quoted 22 lines · On Thu, 27 Jun 2019 11:29:18 +0530 Keerthy <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell

Hi Lee,

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

drivers/regulator/lp87565-regulator.c: In function 'lp87565_regulator_probe':
drivers/regulator/lp87565-regulator.c:182:11: warning: this statement may fall through [-Wimplicit-fallthrough=]

    max_idx = LP87565_BUCK_3210;  

Missed adding a break here. Can i send a patch on top of linux-next?

Quoted 9 lines
    ~~~~~~~~^~~~~~~~~~~~~~~~~~~
drivers/regulator/lp87565-regulator.c:183:2: note: here
   default:
   ^~~~~~~

Introduced by commit

   7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

I get these warnings because I am building with -Wimplicit-fallthrough in attempt to catch new additions early. The gcc warning can be turned off by adding a /* fall through */ comment at the point the fall through happens (assuming that the fall through is intentional).

I am still seeing this warning ...

Just pushed the fix for this.

Thank you Stephen.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog