From patchwork Sun Oct 21 17:14:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 10651357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C33B7174E for ; Sun, 21 Oct 2018 17:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8085287B5 for ; Sun, 21 Oct 2018 17:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A98E287C2; Sun, 21 Oct 2018 17:14:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6422F287B5 for ; Sun, 21 Oct 2018 17:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbeJVB3e (ORCPT ); Sun, 21 Oct 2018 21:29:34 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36852 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727835AbeJVB3e (ORCPT ); Sun, 21 Oct 2018 21:29:34 -0400 Received: by mail-wm1-f67.google.com with SMTP id a8-v6so8004423wmf.1; Sun, 21 Oct 2018 10:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=q5w/nTQUtgeSapqPfzXNGuFUr8eXJwPXsiCxfn1bH64=; b=qzElEMZPacAbz/PqxTnWNZTPeyJykLJR8zfQbpSmIjLxwYDELMQQZRBvxFBdEixbI/ 4tnueCOFoSnkuMqdg2BMNhM/mj5oVRnd28nKS/HYQQsjE2dUbcOy0209EHdmgCZCthWg cAbg7JwhE1+yNyQxe0EG+YXAtLNJyPuLYAmSGXGy8oE4fyDFF8qz8M55efb1uSUAbOk4 TdowzH0KFq1m97OJhqozFY56bDR9hE+LITZkUHVgGQxMNrBkQZh1aaDCpCh8vecA0Q60 Q45H2RZ7Ub+Ast8PSZI5m5XOBHlLlav5+hSKAOlpbqIIWSuodYpc6Lle0kggiPjKvYsv qgxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=q5w/nTQUtgeSapqPfzXNGuFUr8eXJwPXsiCxfn1bH64=; b=WS1g4Hhio1MIUq7dMHfojYbmcMpsXcN+5C49YxzAzf6xX7kdPvRglUKAWtty4+yATy dX0/nK2DktRhIxO+hjuYGzS7LFNlzJ9Jy70x8bdeEGVqwsTf7QI+z1P6H/Gchw45YDp1 L+BlNYLqCpG7zyQs6vOkvXiXuD32eawBCW/wddk1uKVhngEFmPxjWa4vv93ejtJ2qyDn sTtX9SK/bK7hlAoeVlAjiomP4pneiUmU/SLCMZYUl3CUQSUBXH+b9oJFXMDNSWG4/1o1 VjJR4lbHMCVhpGXVv7EZ5Z3pfaSqZ9ykwWZcYTtBDdDJXA+Jx2fXcIJTbv2wIeoYz4tC 0TWA== X-Gm-Message-State: ABuFfogzY/IWW0RHYafxu6wUJjimsYng3uWtCb1/qnAWEzcFPX/WFSKD 6sSMzRt24HU2nYJCsoZeOt0= X-Google-Smtp-Source: ACcGV611pibJsDHGqOR1EI4l/CMwB1KwwrS5/uyf0F2U3WdTt8TEDo6mwfmmvSrpeUizyqt2uRc3tQ== X-Received: by 2002:a1c:c683:: with SMTP id w125-v6mr12546147wmf.117.1540142073090; Sun, 21 Oct 2018 10:14:33 -0700 (PDT) Received: from localhost.localdomain (62.83.35.8.dyn.user.ono.com. [62.83.35.8]) by smtp.gmail.com with ESMTPSA id y16-v6sm20860113wru.18.2018.10.21.10.14.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 10:14:31 -0700 (PDT) From: Miguel Ojeda To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Dan Carpenter , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , "David S . Miller" , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Theodore Ts'o , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Nick Desaulniers , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 0/2] Compiler Attributes: __fallthrough Date: Sun, 21 Oct 2018 19:14:12 +0200 Message-Id: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Andreas Dilger Cc: Masahiro Yamada Cc: Michal Marek Cc: Steven Rostedt Cc: Mauro Carvalho Chehab Cc: Olof Johansson Cc: Konstantin Ryabitsev Cc: David S. Miller Cc: Andrey Ryabinin Cc: Kees Cook Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Paul Lawrence Cc: Sandipan Das Cc: Andrey Konovalov Cc: David Woodhouse Cc: Will Deacon Cc: Philippe Ombredanne Cc: Paul Burton Cc: David Rientjes Cc: Willy Tarreau Cc: Martin Sebor Cc: Christopher Li Cc: Jonathan Corbet Cc: Theodore Ts'o Cc: Geert Uytterhoeven Cc: Rasmus Villemoes Cc: Joe Perches Cc: Arnd Bergmann Cc: Dominique Martinet Cc: Stefan Agner Cc: Luc Van Oostenryck Cc: Nick Desaulniers Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: Linus Torvalds Cc: linux-doc@vger.kernel.org Cc: linux-ext4@vger.kernel.org Cc: linux-sparse@vger.kernel.org Cc: linux-kbuild@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(-)