Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1398408ima; Sun, 21 Oct 2018 10:49:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Lz5CeEl8UYg9YULG6mMkgEBvVG/0i6DmCKywZIi8NmaCip8yxgxvsullcOP4GN7lfc2As X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr42374576plt.268.1540144156120; Sun, 21 Oct 2018 10:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540144156; cv=none; d=google.com; s=arc-20160816; b=T5/phSUadF2TIsAuxMWzDqvoS8fcOv/VvZWim5DhuXhtQlX05vx96qAacbDwkuFOub QKUv4D0Ik8QIWgG5y7F4JGnrpywmM1DNf3gyDbqpX+d0DLro8VmOsu4fWa0zrExr8bUb uYLAzDXNDwpITYVEmlvSo5fEOqENSQF3NwmcgTR99RiFO+lhj2iSlpCFviURtcAfnFlD QlcIguMfi6fXmgQiDondOo8DGFVwSKdjRj+zmYgynUXIdu6dL6NMxUPrONdZjW5+jYCa Yf8ipbzi/Oip2oW81WRyiayuF1zjiThfmtnx91XkLir+BrRYSxNjkCiNQNziVvglbhsq fjuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=o3HmxdElEan8PDyuuAhOtrH3RdwB6dQE/RImZWBr3E4=; b=edq4tat81VfIw0/sFnbBqkyiCoSGegGvzRW256fHnnKWE2GAF83sme0g3pBE8VLJ4H mqFqJ4cz3w6HwY8GTcYjz767XZn9Wx6rA70ZIjhRsxr1uB6u35VJsSTPizehisDRjTQL DC5mpSnER8axcwCkGbtYxzfRAbsMsxjTGEubEYm7r0x5kT7TQ91pHBaRwgDixuYFuuhu vdZ0xt4jxsJlqhJkUHRxhfn+xaHGdDF5m81Hbc55mCb5Vp8CS1ZJEYrj93IfFtVWEXBO dzmpWtHubF1W7WXBNvi3KQ4efDOsjVDU2pcRpPXh3KL3bolM/aBVAe2C78ovGJ6P7V6m A3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fGMPxMD+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si29467965pgk.306.2018.10.21.10.49.00; Sun, 21 Oct 2018 10:49:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fGMPxMD+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728268AbeJVB3m (ORCPT + 99 others); Sun, 21 Oct 2018 21:29:42 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51193 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeJVB3l (ORCPT ); Sun, 21 Oct 2018 21:29:41 -0400 Received: by mail-wm1-f67.google.com with SMTP id i8-v6so7919231wmg.0; Sun, 21 Oct 2018 10:14:41 -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:in-reply-to:references; bh=o3HmxdElEan8PDyuuAhOtrH3RdwB6dQE/RImZWBr3E4=; b=fGMPxMD++IYRW9PSqM0Q0c5C5gDDgu/MQ3QSjFxgZVyqoOJQZLUE5qAf9Dm4a836es ffIaZIgpSJdY5hHIywrpRmJSAohsIxBz4w+bVd/j0nhRfNZIzsj8kueJA91Eou4eV2av i3w82VA1JOokFKI06KpVC0eEvexDsMZ4vqmqrSiO7BkT+PL7HHFnee89XlC/4QZOQmtr HJ1iEGGaoR5uHBZK/bYPnpXQpaiIAiH13GTqyrdsOKKTsXRvfacsazqT43gSdG3i+xXS UBb1McfLljpJEGsVFYKOa3I3sqWi9CC+t4Cj+O+fI/UxJdiaqSaZfVt0Z8QdUgs/5oRk iYQA== 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:in-reply-to :references; bh=o3HmxdElEan8PDyuuAhOtrH3RdwB6dQE/RImZWBr3E4=; b=mPyIvorFefokQzKEu6DiRLA1QJNyz8RpkXEQa2nQ+wOiJUFk8b+CIv7wiphcVJW2f5 bwCYHLNtixZdFflbsslb27/hnRvRVkSRsPeJrbyZEBP96wLz4TJuXI8q/zF0dV5UMgQt L/sCPHbZOSsojrDRTWmEAHu5XGKzYnl1IZqXEeLTy5xz/oyAWbWeurUl0gfAfpcCENP4 E3JPIHyTpkXoffpUY3Rh4I+BXj/SSeMNBgoDUkpQRz5O1yR8uGUK5yEsTq3y3/upJZrW s6Q7/Nnon8J2j6RFCflqNMk7IlU7RN9V1haUNiD5v6JOzY5NoOuCfWEbauDkzr1lgnSZ aT8g== X-Gm-Message-State: ABuFfojeHG6ETlICy2qMwKWYrFFgZq5bVkrFKqkHD7hMXjkKvAi/zBFP sXp2o55CLZ3iZhN6twFRTPY= X-Received: by 2002:a1c:2384:: with SMTP id j126-v6mr12542954wmj.124.1540142081015; Sun, 21 Oct 2018 10:14:41 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 10:14:40 -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 2/2] Compiler Attributes: auxdisplay: panel: use __fallthrough Date: Sun, 21 Oct 2018 19:14:14 +0200 Message-Id: <20181021171414.22674-3-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let gcc know these cases are meant to fall through to the next label by annotating them with the new __fallthrough statement attribute; and remove the comment since it conveys the same information (which was also parsed by gcc to suppress the warning). Signed-off-by: Miguel Ojeda --- drivers/auxdisplay/panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index 21b9b2f2470a..0755034e49ba 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c @@ -1367,7 +1367,7 @@ static void panel_process_inputs(void) break; input->rise_timer = 0; input->state = INPUT_ST_RISING; - /* fall through */ + __fallthrough; case INPUT_ST_RISING: if ((phys_curr & input->mask) != input->value) { input->state = INPUT_ST_LOW; @@ -1380,11 +1380,11 @@ static void panel_process_inputs(void) } input->high_timer = 0; input->state = INPUT_ST_HIGH; - /* fall through */ + __fallthrough; case INPUT_ST_HIGH: if (input_state_high(input)) break; - /* fall through */ + __fallthrough; case INPUT_ST_FALLING: input_state_falling(input); } -- 2.17.1