Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp92094pxu; Tue, 1 Dec 2020 06:53:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcw/vPkF+pJnsbcL1hbMFsB8rGQovbrvKKBzaRkI9A7ZVVJacxbXdtYD8gL2flrTIwIBci X-Received: by 2002:a17:906:2e85:: with SMTP id o5mr3327471eji.521.1606834381950; Tue, 01 Dec 2020 06:53:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606834381; cv=none; d=google.com; s=arc-20160816; b=Rhk3XTftEEGSz9H12ampSru1ia8X7ctIYiCLIDKfJYBTEJ8/FD9o0L7HNkDqHk96z8 bv4XB6YtkLPkU0ryO3Yd2JNIlbBfxlBLWvLyrj7v1pejZS5QDnis44bdZ9h/P6/ck4M+ fOpPTt8CZyPGe3/h0pkm6fnv+wjAgj23zRgfZVC/qsPyAI60uzAk6BUJ/4uM7fBfyGq8 c5wA3VJUFpbNHpvh/qZgeBTdKTPJaJofQi1RNt4KJbTIGiBFQiUNPSPbc578+cBOuD4b TlssDqYWDcLUocV8lqrk5S3UEayd4pkpXSLP3tOFDSFdVFTUYjR4Br+YtLwhiso55gT2 ko/w== 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=u11hnNgXTS9zHw9F1VKspmTAQsvSEt7QVrPJBjDHu6g=; b=bARF0AynC4h63Ga1md78ofTatEHUVCnllLXAt+pmKn2wgpApwCcIFLGoVzAYhXRHjo 7OCxecEHKBL9jE0bxNFYgMdrI1+JaPrsCr2hbOnXbaK84BShOj8TEYp1ccCwoKb0ZJDZ BCOm1Zhm7sueT95E+pEOry1pG7XgwRbKo01mjzMpa9jzqdMoAQgXnBtI/gIP9tjJ8y2w foO1ToHzw7y8M3xCg2GfLa6QirWU6jKVqP5MJ3YeEWBJsnpbT4uVHC950jphPigLR+cb X+7+i1NQWcbI0yFRSx6dRVDBCYZfpPSjjaHfT28x1MzignrbL6QN6Z/aM3J2CKmZ+KID PqGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=M6aCuNhU; 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 n4si1255675eda.607.2020.12.01.06.52.38; Tue, 01 Dec 2020 06:53:01 -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=M6aCuNhU; 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 S2403889AbgLAOvO (ORCPT + 99 others); Tue, 1 Dec 2020 09:51:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389765AbgLAOvO (ORCPT ); Tue, 1 Dec 2020 09:51:14 -0500 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD663C0613D6 for ; Tue, 1 Dec 2020 06:50:24 -0800 (PST) Received: by mail-ej1-x643.google.com with SMTP id f23so4634264ejt.8 for ; Tue, 01 Dec 2020 06:50:24 -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=u11hnNgXTS9zHw9F1VKspmTAQsvSEt7QVrPJBjDHu6g=; b=M6aCuNhUcEkKmxd2/vopzwE3KJ+WxtGAgKPzeagXFjrrmNAkATleXsRB/oZM/db+dt ls2r4BhXUW2CdPXcopCP75b6Lc8PeGrN6y2MV1V+OEikX1tCgtSTAaov149IlIMU1+P2 1umLDMyp5eZZm8FyqysZpP8Z0FIHWVGSg5twL6zjAVagJTQeo5pjd5YF9csMisiSVwTM kTsWUlW2dgQ4h+H5/Y2oA5uQcayqKSuG+TVNxW2ltAM96/x4tHzSC86aFdA0ubYT4uXu ehUSpDUW6w5aASkXX2LO6oFFKZ17FdtCaKdq3F959IqbAUMydq6RsktatxMoU3Q6hVXK Qivg== 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=u11hnNgXTS9zHw9F1VKspmTAQsvSEt7QVrPJBjDHu6g=; b=QlDam+zgMGhFr7ChlN0kQRnm5c3BqqK+70QffGMXWg7dswBbtWZgF0aFObmn0zpkGL FRCJyGwdla943icJrcV7JlOdcL5iQfhGR25rHmjalmhsHhscDZaGRkaBnuavIJDF9R++ SJ86DJrk5Frj5RxCdUOsWmYm6uToiTL/Mk+GqEXsn8ZZeI/IhA3pObg2LD9MP+/144Qz Ai2zutFs7GQO2cA1D/9F9QTa6rXHkq8ufGRwLQmOxaL3mnAejWMuq3DeNlH99VCMyDbn VQS+JFAuVTeau9zPSoJg/FrWOn69j5IexQL/qe3JrEu+1ViXOtr6icoZbI5EgAuNcvH5 DmuQ== X-Gm-Message-State: AOAM533ricHvVb92KiYdAGvpB9FtFhuIDpGoFcx706sfnEB77zsFVTJV E+gxSFavcwKLzfZegatcKpQ4aGo/MM0SBSTVCD9n7g== X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr3193264ejd.363.1606834223625; Tue, 01 Dec 2020 06:50:23 -0800 (PST) MIME-Version: 1.0 References: <20201119170901.GA22703@embeddedor> In-Reply-To: <20201119170901.GA22703@embeddedor> From: Bartosz Golaszewski Date: Tue, 1 Dec 2020 15:50:12 +0100 Message-ID: Subject: Re: [PATCH][next] gpio: ath79: Fix fall-through warning for Clang To: "Gustavo A. R. Silva" Cc: Alban Bedel , Linus Walleij , linux-gpio , 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:08 PM Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a > warning by explicitly adding a fallthrough pseudo-keyword to indicate > that the code is intended to fall through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/gpio/gpio-ath79.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c > index d5359341cc6b..678ddd375891 100644 > --- a/drivers/gpio/gpio-ath79.c > +++ b/drivers/gpio/gpio-ath79.c > @@ -123,6 +123,7 @@ static int ath79_gpio_irq_set_type(struct irq_data *data, > switch (flow_type) { > case IRQ_TYPE_EDGE_RISING: > polarity |= mask; > + fallthrough; > case IRQ_TYPE_EDGE_FALLING: > case IRQ_TYPE_EDGE_BOTH: > break; > -- > 2.27.0 > Applied, thanks! Bartosz