Skip to contentSkip to conversation

Smatch indenting warnings?

DISCUSSION Dan Carpenter 2 participants 3 messages Mar 2, 2020

lore
Share & tools
lore
#0 lore raw

Smatch prints a lot of warnings about inconsistent indenting.

sound/soc/codecs/max98088.c:1746 max98088_i2c_probe() warn: inconsistent indenting sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn: inconsistent indenting sound/core/rawmidi.c:1882 alsa_rawmidi_init() warn: inconsistent indenting

$ grep "inconsistent indenting" smatch_warns.txt | wc -l
321

These are generally not bugs, but the check has a low false positive ratio and it's all stuff which really should be fixed. I seldom report them but it would be nice if kbuild reported them automatically.

regards,
dan carpenter

#1 lore raw
Quoted 11 lines

Subject: [kbuild] Smatch indenting warnings?

Smatch prints a lot of warnings about inconsistent indenting.

sound/soc/codecs/max98088.c:1746 max98088_i2c_probe() warn: inconsistent indenting
sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn: inconsistent indenting
sound/core/rawmidi.c:1882 alsa_rawmidi_init() warn: inconsistent indenting

Quoted 6 lines
$ grep "inconsistent indenting" smatch_warns.txt | wc -l
321

These are generally not bugs, but the check has a low false positive ratio and it's all stuff which really should be fixed. I seldom report them but it would be nice if kbuild reported them automatically.

Thanks Dan, we will handle this in this week to automatically send "inconsistent indenting" warn.

Quoted 6 lines

regards,
dan carpenter
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org

#2 lore raw
Quoted 11 lines · Philip
Quoted 11 lines

Subject: [kbuild] Smatch indenting warnings?

Smatch prints a lot of warnings about inconsistent indenting.

sound/soc/codecs/max98088.c:1746 max98088_i2c_probe() warn: inconsistent indenting
sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn: inconsistent indenting
sound/core/rawmidi.c:1882 alsa_rawmidi_init() warn: inconsistent indenting

Quoted 8 lines
Quoted 6 lines
$ grep "inconsistent indenting" smatch_warns.txt | wc -l
321

These are generally not bugs, but the check has a low false positive ratio and it's all stuff which really should be fixed. I seldom report them but it would be nice if kbuild reported them automatically.

Thanks Dan, we will handle this in this week to automatically send "inconsistent indenting" warn.

Awesome! Thanks so much.

regards,
dan carpenter