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 <[email protected]> Cc: Andreas Dilger <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Michal Marek <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: Olof Johansson <[email protected]> Cc: Konstantin Ryabitsev <[email protected]> Cc: David S. Miller <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Kees Cook <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Lawrence <[email protected]> Cc: Sandipan Das <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Will Deacon <[email protected]> Cc: Philippe Ombredanne <[email protected]> Cc: Paul Burton <[email protected]> Cc: David Rientjes <[email protected]> Cc: Willy Tarreau <[email protected]> Cc: Martin Sebor <[email protected]> Cc: Christopher Li <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Theodore Ts'o <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Joe Perches <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Dominique Martinet <[email protected]> Cc: Stefan Agner <[email protected]> Cc: Luc Van Oostenryck <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] 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
