* Re: [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs [not found] <20190625160103.GA13133@embeddedor> @ 2019-06-25 16:52 ` Joe Perches 2019-06-25 17:06 ` Gustavo A. R. Silva 2019-06-25 17:31 ` Kees Cook 0 siblings, 2 replies; 6+ messages in thread From: Joe Perches @ 2019-06-25 16:52 UTC (permalink / raw) To: Gustavo A. R. Silva, Jingoo Han, Bartlomiej Zolnierkiewicz Cc: linux-fbdev, dri-devel, linux-kernel, Kees Cook, Masahiro Yamada, Michal Marek, linux-kbuild On Tue, 2019-06-25 at 11:01 -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. [] > This patch is part of the ongoing efforts to enable > -Wimplicit-fallthrough. Just enable the thing already. If you stopped trying to do it all yourself, others will help resolve any new build warnings. For instance: a build of -next x86/64 defconfig has 2. nbd. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5102b2bbd224..df909ffdfcdb 100644 --- a/Makefile +++ b/Makefile @@ -690,6 +690,7 @@ endif # may-sync-config endif # $(dot-config) KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) +KBUILD_CFLAGS += $(call cc-option, -Wimplicit-fallthrough) KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs 2019-06-25 16:52 ` [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs Joe Perches @ 2019-06-25 17:06 ` Gustavo A. R. Silva 2019-06-25 17:37 ` Joe Perches 2019-06-25 17:31 ` Kees Cook 1 sibling, 1 reply; 6+ messages in thread From: Gustavo A. R. Silva @ 2019-06-25 17:06 UTC (permalink / raw) To: Joe Perches, Jingoo Han, Bartlomiej Zolnierkiewicz Cc: linux-fbdev, dri-devel, linux-kernel, Kees Cook, Masahiro Yamada, Michal Marek, linux-kbuild On 6/25/19 11:52 AM, Joe Perches wrote: > On Tue, 2019-06-25 at 11:01 -0500, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. > [] >> This patch is part of the ongoing efforts to enable >> -Wimplicit-fallthrough. > > Just enable the thing already. > > If you stopped trying to do it all yourself, others What are you talking about? Anyone can enable it, I'm adding this to every commit: Warning level 3 was used: -Wimplicit-fallthrough=3 And I'll send a PR with a proper patch for the Makefile during the next merge window. If had the power I would have enabled this option since day 1, so every developer can take care of their own code. Lately, you are not being of much help, Joe. -- Gustavo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs 2019-06-25 17:06 ` Gustavo A. R. Silva @ 2019-06-25 17:37 ` Joe Perches 0 siblings, 0 replies; 6+ messages in thread From: Joe Perches @ 2019-06-25 17:37 UTC (permalink / raw) To: Gustavo A. R. Silva, Jingoo Han, Bartlomiej Zolnierkiewicz Cc: linux-fbdev, dri-devel, linux-kernel, Kees Cook, Masahiro Yamada, Michal Marek, linux-kbuild On Tue, 2019-06-25 at 12:06 -0500, Gustavo A. R. Silva wrote: > > On 6/25/19 11:52 AM, Joe Perches wrote: > > On Tue, 2019-06-25 at 11:01 -0500, Gustavo A. R. Silva wrote: > > > In preparation to enabling -Wimplicit-fallthrough, mark switch > > > cases where we are expecting to fall through. > > [] > > > This patch is part of the ongoing efforts to enable > > > -Wimplicit-fallthrough. > > > > Just enable the thing already. > > > > If you stopped trying to do it all yourself, others > > What are you talking about? > > Anyone can enable it, I'm adding this to every commit: > > Warning level 3 was used: -Wimplicit-fallthrough=3 No one does that by default and almost no one is helping eliminate these. Not even on th Almost no one uses make W=<levels> either as it's generally extremely noisy and can emit a lot of false positives. > And I'll send a PR with a proper patch for the Makefile > during the next merge window. That's great. > If had the power I would have enabled this option since day 1, > so every developer can take care of their own code. You have always had the power to send a patch. You also seem to believe the build needs to be completely clean before enabling the switch. I don't. > Lately, you are not being of much help, Joe. <smile> What kind of help are you expecting? I'm not submitting patches adding fallthough comments as I think that's not a good form. I've said so repeatedly. I believe I suggested months ago you default enable the compiler switch. So it's up to you to either do it or not. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs 2019-06-25 16:52 ` [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs Joe Perches 2019-06-25 17:06 ` Gustavo A. R. Silva @ 2019-06-25 17:31 ` Kees Cook 2019-06-25 17:49 ` Joe Perches 1 sibling, 1 reply; 6+ messages in thread From: Kees Cook @ 2019-06-25 17:31 UTC (permalink / raw) To: Joe Perches Cc: Gustavo A. R. Silva, Jingoo Han, Bartlomiej Zolnierkiewicz, linux-fbdev, dri-devel, linux-kernel, Masahiro Yamada, Michal Marek, linux-kbuild On Tue, Jun 25, 2019 at 09:52:23AM -0700, Joe Perches wrote: > On Tue, 2019-06-25 at 11:01 -0500, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch > > cases where we are expecting to fall through. > [] > > This patch is part of the ongoing efforts to enable > > -Wimplicit-fallthrough. > > Just enable the thing already. Linus has been pretty clear about not wanting warning options enabled without first fixing all the cases it warns about first. If that's changed, then sure, let's do it; but we went through a lot of coordination with sfr for linux-next nag-mail coverage (where maintainers are now fixing it themselves) when this came up during the last kernel summit, and this approach was the agreed solution. -- Kees Cook ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs 2019-06-25 17:31 ` Kees Cook @ 2019-06-25 17:49 ` Joe Perches 2019-06-25 20:18 ` Kees Cook 0 siblings, 1 reply; 6+ messages in thread From: Joe Perches @ 2019-06-25 17:49 UTC (permalink / raw) To: Kees Cook Cc: Gustavo A. R. Silva, Jingoo Han, Bartlomiej Zolnierkiewicz, linux-fbdev, dri-devel, linux-kernel, Masahiro Yamada, Michal Marek, linux-kbuild On Tue, 2019-06-25 at 10:31 -0700, Kees Cook wrote: > On Tue, Jun 25, 2019 at 09:52:23AM -0700, Joe Perches wrote: > > On Tue, 2019-06-25 at 11:01 -0500, Gustavo A. R. Silva wrote: > > > In preparation to enabling -Wimplicit-fallthrough, mark switch > > > cases where we are expecting to fall through. > > [] > > > This patch is part of the ongoing efforts to enable > > > -Wimplicit-fallthrough. > > > > Just enable the thing already. > > Linus has been pretty clear about not wanting warning options enabled > without first fixing all the cases it warns about first. Hey Kees. I don't recall that particular tidbit. Got a link? cheers, Joe ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs 2019-06-25 17:49 ` Joe Perches @ 2019-06-25 20:18 ` Kees Cook 0 siblings, 0 replies; 6+ messages in thread From: Kees Cook @ 2019-06-25 20:18 UTC (permalink / raw) To: Joe Perches Cc: Gustavo A. R. Silva, Jingoo Han, Bartlomiej Zolnierkiewicz, linux-fbdev, dri-devel, linux-kernel, Masahiro Yamada, Michal Marek, linux-kbuild On Tue, Jun 25, 2019 at 10:49:01AM -0700, Joe Perches wrote: > On Tue, 2019-06-25 at 10:31 -0700, Kees Cook wrote: > > On Tue, Jun 25, 2019 at 09:52:23AM -0700, Joe Perches wrote: > > > On Tue, 2019-06-25 at 11:01 -0500, Gustavo A. R. Silva wrote: > > > > In preparation to enabling -Wimplicit-fallthrough, mark switch > > > > cases where we are expecting to fall through. > > > [] > > > > This patch is part of the ongoing efforts to enable > > > > -Wimplicit-fallthrough. > > > > > > Just enable the thing already. > > > > Linus has been pretty clear about not wanting warning options enabled > > without first fixing all the cases it warns about first. > > Hey Kees. > > I don't recall that particular tidbit. Got a link? It was spread out over the discussion around removing __deprecated, about enabling -Wvla, and in person at the kernel summit when asking what approach to take for -Wimplicit-fallthrough. -- Kees Cook ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-06-25 20:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190625160103.GA13133@embeddedor>
2019-06-25 16:52 ` [PATCH] video: fbdev: s3c-fb: Mark expected switch fall-throughs Joe Perches
2019-06-25 17:06 ` Gustavo A. R. Silva
2019-06-25 17:37 ` Joe Perches
2019-06-25 17:31 ` Kees Cook
2019-06-25 17:49 ` Joe Perches
2019-06-25 20:18 ` Kees Cook
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox