Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp93061pxu; Tue, 1 Dec 2020 06:54:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoPx3yMAcnMvLf1g1MXMjDsKYDWmWsg/OUelpqg2do4GmjxzQ0FXYCcDYJ/sz8aJiSOhLR X-Received: by 2002:a17:906:f2c3:: with SMTP id gz3mr3476138ejb.448.1606834475226; Tue, 01 Dec 2020 06:54:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606834475; cv=none; d=google.com; s=arc-20160816; b=NCqUmQZ8VszAvTXCibc2om87xq5U4UI8QMNLOAyf3PSOF3uvUpx3A54M75CILojawu egPLMtkYIf1twFRF9Sa7H0XQ4ZKGWIIUn3+fs3MSR5wZ5n9kEeG1PYYOeZZDWuYbB7Az brabZxUjJNDJ4Qt11GVCH/TbexWLHrYH+W62rPrXn0VEbqtZ1SdCQASAV5cX+DKa2EjP IPNYHL9UPgwc4ueypP1iovD2d5mNZJWMvJF9TZBqHG8ldiYLwIRqMZqTm2jq4p/HF6xQ 4BRqBwUhHiDzRjsmMpVaJgwT5co6P0hWJ353DPPZBpt401RXvSb+netzWA0VJS4/ntib JpqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lQmiVxJd+Kl2UDX74aE8ZcT26AtGS/wklDJV5DWlb3M=; b=gBL0nCgvIWExo3+TJPpnETiULSOYoBlLLMWkz5HWh/2KabbIV5lsS8blOOJJFz2v+n uLMljTXRUyRTtWk207fQZh4lqevPTDHO00fOeExofSCdiAxo3RrgSVjelO1M/uiZBOHs cyilefb5WXsRsO9WpyjzDzgByq3mKOlK2stFzeKq19N9vW5QtCD9L3ifOUH26CPHGrSH criq11V5Aq3yxuTWUVYJ7HV0DDRzqziT8uLgoykpXbk2G9J9q8sz4286kPwQvN2gOUmQ OvCQQYoKfgYJFGjLz8Z15rgpKciNIo85ZAVojJf3auZo9XY1VYn8bMZGyzthb5SaykI0 bIPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jwAPYMuz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si16527edc.33.2020.12.01.06.54.12; Tue, 01 Dec 2020 06:54:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jwAPYMuz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391726AbgLAOty (ORCPT + 99 others); Tue, 1 Dec 2020 09:49:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389038AbgLAOtx (ORCPT ); Tue, 1 Dec 2020 09:49:53 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3BC6C0613D4 for ; Tue, 1 Dec 2020 06:49:06 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id lt17so4666756ejb.3 for ; Tue, 01 Dec 2020 06:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lQmiVxJd+Kl2UDX74aE8ZcT26AtGS/wklDJV5DWlb3M=; b=jwAPYMuzH8oNFpb2B3klwVMdsmIjlpPrDfYD0OKHi+ansmJ1xkPwf6DfJacdvGbEhh 6WnHZBSNLKx7hcEJ2IPsIojFee9my/FoLbJlkNlz/NbhTV9jhkQn8ME8J7cdaryRPbo8 lVhF5Ij3hgCndTWby3BXtKNErZ9FUeF2dUMjr7NkjYJHyTGXtXou+nSO17xVSXHUawJz 8/bOnngSJaErW3NxFTeBTklslB6aQJ0/vTHSJRfjmDuGPnLEFkSvpufW90liCaX/o4QK 2nbG3vny/XyoEpAtuaTbCZeWeZwxVQS0F+fr8h56vGWhO1g473rDd0lc0sFTO3XPtqru sIcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lQmiVxJd+Kl2UDX74aE8ZcT26AtGS/wklDJV5DWlb3M=; b=T4zeyiZnpq+2IvBYGjF0Zckea/7BDxwi9ibR6z7+UdMktvK0bRHH37w1p1xeIPsziv cTy8ByA/tAUzqolfsK08bv7CfOLWNxNO3Jq6DRpCOaydmCVhAXzIP+cmYTvsUcTHWjPx /lSvFn7E7j+mQHvCMMTopClkvtOg6Dwb8f4BlKjiDr0zL6UCNi2E3eNMOkSD+5sfDb8N iEz7TymoKHKGykW+RhuYCs9lNzQb2Asz7c1GauUJgK5MmsdnfgzfJpfhRu1LLYpHB9PC KaoT3OXchX/DAlpy57Q5lxbzQdGwd65SbqdgWePDc7OtwKI2jpDyAiFjNnaMJYh+Kq+Y JblA== X-Gm-Message-State: AOAM532XAoGZmYACkWhAzXEuPY0FDG2JTgJILCHUWg/xzIzadkDcSw6D v/pblpZceAVBLNDyQft5CHaSO8oWRJr76rK0W4Hkutie3Z8= X-Received: by 2002:a17:906:d8dc:: with SMTP id re28mr3382153ejb.168.1606834145234; Tue, 01 Dec 2020 06:49:05 -0800 (PST) MIME-Version: 1.0 References: <20201119170739.GA22665@embeddedor> In-Reply-To: <20201119170739.GA22665@embeddedor> From: Bartosz Golaszewski Date: Tue, 1 Dec 2020 15:48:54 +0100 Message-ID: Subject: Re: [PATCH][next] gpiolib: acpi: Fix fall-through warnings for Clang To: "Gustavo A. R. Silva" Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij , linux-gpio , ACPI Devel Maling List , LKML , linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 19, 2020 at 6:07 PM Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/gpio/gpiolib-acpi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c > index 6cc5f91bfe2e..e37a57d0a2f0 100644 > --- a/drivers/gpio/gpiolib-acpi.c > +++ b/drivers/gpio/gpiolib-acpi.c > @@ -233,6 +233,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity) > default: > break; > } > + break; > default: > break; > } > -- > 2.27.0 > Applied, thanks! Bartosz