Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2591632ybh; Mon, 5 Aug 2019 03:35:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY3RUCV6ES2OmnBfrm+fHMLjflC2Up9SfViLm9bfQc0RCFqLnTRJhiuX7bgEeiEwKw5FvC X-Received: by 2002:a17:902:f095:: with SMTP id go21mr146336620plb.58.1565001321131; Mon, 05 Aug 2019 03:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565001321; cv=none; d=google.com; s=arc-20160816; b=jo1iNn4ShQeVdGxbcNQbzKDrp6ru7KgC3qM7ZhFT4xAIzGBUF58yLkX9cjWNi2kjdE HTmicbyatnzKDbhEA2rkMM/IAuE6rqjcKDwjkevuNtyAJtR2QM8pJ+ArncAVHZVzhLP8 QqyrCRRZtXeE5TiaCHYh08Jn4vLUTIxDshfOsJKLN7J3EPJxRkuOzCFiGvLZJK6W4wZN oKlUVuvKt8WWy49BPU6ZBMkvcyUmLlWSS8F7YCYssAKRtHdxj8KuVxPOerBYZLpw4dTL v6nOwDD59FPOZr3DHyaR1tvbabTW+sSuTi7ZSHZaO4KK5KJJASA4FEkGASiocefZyUXH h8ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=u41rCFVRT5TIJ3WzFOFyBFX+clVgfPodEdyZutaTu+E=; b=Zve1S8gAaI5gUG0jMAuV8CXZceLPlTI2RO5ePT/LjQR/h+gomWWXjML/4awtFJzk8g Y49C2F+RLT/Yi3S2p48+WEZJpsj1+Cfs/yRXJpVE9CppyDm8nx0bL4oS8MAcdyaHYJ3h RWGttHBGNyEvRoZMRE8uNNQtvYewfTP2kQlvgfLnLwL3PPIki9GCdBnLC9SRKeTIgsxx clh2dZ5jtfDzlg710pkNg/8MmSIyDdrjWLmBRhZug2h4hKvqbd1R7zr6SKr3fz6lp18H u/CfCWZZeFfKZLrIw4MQZBGZzya6ku0i6UNZaNWKyuAmwuNP+FcFtzvktui68dnIdPRO nARw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAnOjSDw; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 100si43085838pla.158.2019.08.05.03.35.05; Mon, 05 Aug 2019 03:35:21 -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=@linaro.org header.s=google header.b=JAnOjSDw; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728128AbfHEKdF (ORCPT + 99 others); Mon, 5 Aug 2019 06:33:05 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34813 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfHEKdF (ORCPT ); Mon, 5 Aug 2019 06:33:05 -0400 Received: by mail-lj1-f194.google.com with SMTP id p17so78872718ljg.1 for ; Mon, 05 Aug 2019 03:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u41rCFVRT5TIJ3WzFOFyBFX+clVgfPodEdyZutaTu+E=; b=JAnOjSDww3k0wMC7tRMvLH1EJVHUGgbYraz6NUV4+qPVM6BpUbpsYlBAmLsT42AeNX dV+a61ouLe8Ue7j6PfJlmxR8BQcaB/OBny1VFbDkMNFRFYOMzDixYPDzGYCO1k0lkBLL 4F8HEiLeRhlbwEi7L9XIjsyo/8C7+7eocgK2fMrjL+6y/XzFWrWaniMST8AKs152qsU9 1sKr6OHrw7D1MRnRp2ni7LQ5O4QgczpxV2l2gumIc3QbjcJ+aWpy67paHz30fXP+72c3 /cHHlsDRR+2VfQ3WxMtouQ/i5uxoWIXXOtF5exGYJTQiWE0Wu+p7yiWXfK5YpUbptdZC zSMA== 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:content-transfer-encoding; bh=u41rCFVRT5TIJ3WzFOFyBFX+clVgfPodEdyZutaTu+E=; b=dc47saUX2j5zDvsgNYBOENrqRm7AUmhwuL8Q+o3AP7icNyeqCcv/2flVmT8XhMR1DT xs9j2FYD3+fZH4pkC4sPbOcIYz9TZxEONIyO1nVQHr9vGhoWpPq4ZDWUMZv0um7mzxQ8 /6UJAyJU9cibXgKGEccJIUaPE3gMRQZZqHz/4Y1E5LQlpDmhMK2agLSlBTi+Tx7WAvJT A2vlalBIvvVaY20STTzyKJJ68NUR56w4D1O8zGnUvmjSo2RkkO0W10nG6VwZtPV7UFF/ E78bMS9l6aTUQCibyp2m/+cwQWve2vAaQPNfVDtXM8OtEtLt57/70j9IT5tCI25lDJWJ 9jHA== X-Gm-Message-State: APjAAAXD0ocSgTVGflDDWWEJYXsRVG8BwZaE9gVgPj7Rt4GJbwqRrd9L R8Xa4dnl86XXPxJlGgdeOtt/OWNLTbVS2AkUBleLZA== X-Received: by 2002:a2e:2c14:: with SMTP id s20mr16465187ljs.54.1565001183227; Mon, 05 Aug 2019 03:33:03 -0700 (PDT) MIME-Version: 1.0 References: <20190726112812.19665-1-anders.roxell@linaro.org> In-Reply-To: <20190726112812.19665-1-anders.roxell@linaro.org> From: Linus Walleij Date: Mon, 5 Aug 2019 12:32:52 +0200 Message-ID: Subject: Re: [PATCH 1/2] pinctrl: rockchip: Mark expected switch fall-through To: Anders Roxell Cc: =?UTF-8?Q?Heiko_St=C3=BCbner?= , Bjorn Andersson , Andy Gross , "open list:GPIO SUBSYSTEM" , Linux ARM , "open list:ARM/Rockchip SoC..." , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 1:28 PM Anders Roxell wr= ote: > When fall-through warnings was enabled by default the following warning > was starting to show up: > > ../drivers/pinctrl/pinctrl-rockchip.c: In function =E2=80=98rockchip_gpio= _set_config=E2=80=99: > ../drivers/pinctrl/pinctrl-rockchip.c:2783:3: warning: this statement may= fall > through [-Wimplicit-fallthrough=3D] > rockchip_gpio_set_debounce(gc, offset, true); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../drivers/pinctrl/pinctrl-rockchip.c:2795:2: note: here > default: > ^~~~~~~ > > Rework so that the compiler doesn't warn about fall-through. Add > 'return -ENOTSUPP;' to match the comment. > > Fixes: d93512ef0f0e ("Makefile: Globally enable fall-through warning") > Signed-off-by: Anders Roxell Patch applied. Yours, Linus Walleij