From patchwork Thu Jul 16 21:15:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 11668471 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20F6C6C1 for ; Thu, 16 Jul 2020 21:09:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0573020809 for ; Thu, 16 Jul 2020 21:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594933795; bh=AcwhowgLvFEZNKhytEiTcdGfl0j994HbxXy5LFPSc18=; h=Date:From:To:Cc:Subject:List-ID:From; b=Dq4j2gd0APB1xQjaSSwTXaDbnkppL6ojGqMQlc+HUSvEppPqI/KqRlshZnJmneLYv MFnRomc5fp+UXT6Z5jagM5F66WihRMgXfirRUF0uiXRIFmzK3pItA5m3C/mAEbPhR6 V9IymkTERcKaFdWzkXJU4xa9ISI4Q6rSRn8xl70A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbgGPVJy (ORCPT ); Thu, 16 Jul 2020 17:09:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:51960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbgGPVJy (ORCPT ); Thu, 16 Jul 2020 17:09:54 -0400 Received: from embeddedor (unknown [201.162.240.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A08E0207DD; Thu, 16 Jul 2020 21:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594933794; bh=AcwhowgLvFEZNKhytEiTcdGfl0j994HbxXy5LFPSc18=; h=Date:From:To:Cc:Subject:From; b=WkZDqo7FDqKZ6oomojkl8Say6lmEeGL8iewbke1QHhFyqu9tTR8MbbAWx1jtqszSB Jv+Vlu8aujRO7T7O4hZG02RTqSg8s3yTFFjgmyGPMe1iJQpr2P0PqEplXfmiMhoEZ7 ZovdgyAIR1uhQfGsmv6B3+WBA/k9JkM2w+p8hr9E= Date: Thu, 16 Jul 2020 16:15:17 -0500 From: "Gustavo A. R. Silva" To: Marek Vasut , Yoshihiro Shimoda , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH][next] PCI: rcar-gen2: Use fallthrough pseudo-keyword Message-ID: <20200716211517.GA17174@embeddedor> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva Reviewed-by: Geert Uytterhoeven --- drivers/pci/controller/pci-rcar-gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-rcar-gen2.c b/drivers/pci/controller/pci-rcar-gen2.c index 326171cb1a97..2ec7093a7588 100644 --- a/drivers/pci/controller/pci-rcar-gen2.c +++ b/drivers/pci/controller/pci-rcar-gen2.c @@ -228,7 +228,7 @@ static int rcar_pci_setup(int nr, struct pci_sys_data *sys) pr_warn("unknown window size %ld - defaulting to 256M\n", priv->window_size); priv->window_size = SZ_256M; - /* fall-through */ + fallthrough; case SZ_256M: val |= RCAR_USBCTR_PCIAHB_WIN1_256M; break;