Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3092736ybh; Mon, 5 Aug 2019 11:56:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/XkPc+/bIaEmS8BHYeQN6o16vsCKNoUjL2W485JsIXUKk0PO7lwcQkJltHdakqBdnQB43 X-Received: by 2002:a17:902:2987:: with SMTP id h7mr50980821plb.37.1565031401036; Mon, 05 Aug 2019 11:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565031401; cv=none; d=google.com; s=arc-20160816; b=aVYhoLwwHSAIZEMy8F6cLWcFcqhrX4vBsL1a5lgLfcJBwkU7aw2+Ijvsn0YtqubU0S j1YWaWHWst/rzzBLvyc3RkNZJr2YgQHaWHjsUOkO+PlJwy91eXQizlJL8rUlRL5bgTEx iWAHV2TFfCPMw9R8DutrzthWe68KjZBHa2BWrGgaSOfILsHSJJ5X2T7TPYiOLgzbMpyc lVhbjx4wF13pXG/3FxioOLFZTel1VfKnKarF1Y8YThG3zhuzNdVe9vKe1Q4FADETcLyG o2lauAshBXKib9Djw5s3BNxxyPQVr4aciu4cA0xXFnoCZUACLlkefu1D9ZiDatunE8d2 ylrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=4oitkPyzu59yuzJ8cpXBWop1iWqnQ/XBOg9TEqWZEew=; b=aFz04o29cG9Fn5HJGS4yLnRFJksf4gEGQNj4u4K9bMisH5yEG2qSqjfSd5V/no+7SD yAaMQoo7ZAgfYk3d4U7CAcfnvfRbM5A6Hbwtb3JJZbpoKkHg6SPurvXOR1vWXDkbKcCc MGXNW6U+qReWzG8yQ6xpBZa13PDV+VI7W8/4ToBQ1f2tpN3yjBZLuZjE1bhJl06fetk+ 44b68saRQJK3ba3NpqlkRlleiTcDdt08lXzObqOw/KrdKf2OvDrPXQjyC5SqtYle5QlR UsU6ooUlbJtzmUsRsBNrD2K1M7wpsxiHH/jEqjq7d2+PFJmu6w1eq+uOrCzlnNy2U8AP dbrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=c2qOfqJX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si48047889pfq.194.2019.08.05.11.56.24; Mon, 05 Aug 2019 11:56:41 -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=fail header.i=@embeddedor.com header.s=default header.b=c2qOfqJX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbfHESzg (ORCPT + 99 others); Mon, 5 Aug 2019 14:55:36 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.18]:49388 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729383AbfHESzg (ORCPT ); Mon, 5 Aug 2019 14:55:36 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 38C8334705 for ; Mon, 5 Aug 2019 13:55:35 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id ui8thMyMHiQerui8thkigd; Mon, 05 Aug 2019 13:55:35 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4oitkPyzu59yuzJ8cpXBWop1iWqnQ/XBOg9TEqWZEew=; b=c2qOfqJXrRp8mZENbNXd45JsFc nzQdoM04/hXlmEi1/JZUWbZHkpbKVujwtKpRFHfmNAt/6tD0ud15VmzcVYx2fclip4mcRfRF5CI3N lAUSNO54BG/deJB1A8nj7SNX/1bE+2r/97caxNuaGcgwyJmtA5LekbVqXVt4EWLFQn6uo88urlvRd AkRFgDseS05WZV66TL1jSP7lZhY+Jd++oCWzcHgSl5LGpPoy+8cxJ7w7GWHR2hDetNZbDi/gpxV8E LXds5y8iTnkVbEEPiBIepY9XzLdn+zD0a3QmHlchoBAa65d71az64ryyjX5QUvSR8CKCjjirMOmKr l/o6etQg==; Received: from [187.192.11.120] (port=37284 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.92) (envelope-from ) id 1hui8r-002vrg-QY; Mon, 05 Aug 2019 13:55:33 -0500 Date: Mon, 5 Aug 2019 13:55:33 -0500 From: "Gustavo A. R. Silva" To: Ralf Baechle , Paul Burton , James Hogan , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com Cc: linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] MIPS: BCM63XX: Mark expected switch fall-through Message-ID: <20190805185533.GA10551@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.192.11.120 X-Source-L: No X-Exim-ID: 1hui8r-002vrg-QY X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [187.192.11.120]:37284 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 17 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: bcm63xx_defconfig mips): arch/mips/pci/ops-bcm63xx.c: In function ‘bcm63xx_pcie_can_access’: arch/mips/pci/ops-bcm63xx.c:474:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (PCI_SLOT(devfn) == 0) ^ arch/mips/pci/ops-bcm63xx.c:477:2: note: here default: ^~~~~~~ Signed-off-by: Gustavo A. R. Silva --- arch/mips/pci/ops-bcm63xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/pci/ops-bcm63xx.c b/arch/mips/pci/ops-bcm63xx.c index d02eb9d16b55..925c72348fb6 100644 --- a/arch/mips/pci/ops-bcm63xx.c +++ b/arch/mips/pci/ops-bcm63xx.c @@ -474,6 +474,7 @@ static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) if (PCI_SLOT(devfn) == 0) return bcm_pcie_readl(PCIE_DLSTATUS_REG) & DLSTATUS_PHYLINKUP; + /* else, fall through */ default: return false; } -- 2.22.0