These are two patches are meant to go on top of the rest of the compiler attributes series on:
https://github.com/ojeda/linux/tree/compiler-attributes which will be sent to Greg for the next merge window. Please review them and let me know! (specially if someone is against __fallthrough for some reason :-). The first patch introduces the attribute and gives the rationale. The second patch is an example of usage. This was started in the following thread: https://lore.kernel.org/lkml/20181017062255.oiu44y4zuuwilan3@mwanda/ Cheers, Miguel Cc: Dan Carpenter <dan.carpen...@oracle.com> Cc: Andreas Dilger <adilger.ker...@dilger.ca> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Michal Marek <michal.l...@markovi.net> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Mauro Carvalho Chehab <mchehab+sams...@kernel.org> Cc: Olof Johansson <o...@lxom.net> Cc: Konstantin Ryabitsev <konstan...@linuxfoundation.org> Cc: David S. Miller <da...@davemloft.net> Cc: Andrey Ryabinin <aryabi...@virtuozzo.com> Cc: Kees Cook <keesc...@chromium.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Ingo Molnar <mi...@kernel.org> Cc: Paul Lawrence <paullawre...@google.com> Cc: Sandipan Das <sandi...@linux.vnet.ibm.com> Cc: Andrey Konovalov <andreyk...@google.com> Cc: David Woodhouse <dw...@infradead.org> Cc: Will Deacon <will.dea...@arm.com> Cc: Philippe Ombredanne <pombreda...@nexb.com> Cc: Paul Burton <paul.bur...@mips.com> Cc: David Rientjes <rient...@google.com> Cc: Willy Tarreau <w...@1wt.eu> Cc: Martin Sebor <mse...@gmail.com> Cc: Christopher Li <spa...@chrisli.org> Cc: Jonathan Corbet <cor...@lwn.net> Cc: Theodore Ts'o <ty...@mit.edu> Cc: Geert Uytterhoeven <ge...@linux-m68k.org> Cc: Rasmus Villemoes <li...@rasmusvillemoes.dk> Cc: Joe Perches <j...@perches.com> Cc: Arnd Bergmann <a...@arndb.de> Cc: Dominique Martinet <asmad...@codewreck.org> Cc: Stefan Agner <ste...@agner.ch> Cc: Luc Van Oostenryck <luc.vanoostenr...@gmail.com> Cc: Nick Desaulniers <ndesaulni...@google.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Linus Torvalds <torva...@linux-foundation.org> Cc: linux-doc@vger.kernel.org Cc: linux-e...@vger.kernel.org Cc: linux-spa...@vger.kernel.org Cc: linux-kbu...@vger.kernel.org Miguel Ojeda (2): Compiler Attributes: add support for __fallthrough (gcc >= 7.1) Compiler Attributes: auxdisplay: panel: use __fallthrough drivers/auxdisplay/panel.c | 6 +++--- include/linux/compiler_attributes.h | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) -- 2.17.1