From patchwork Tue Sep 6 21:32:13 2022 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: 12968214 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7912BECAAA1 for ; Tue, 6 Sep 2022 21:32:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229511AbiIFVcV (ORCPT ); Tue, 6 Sep 2022 17:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiIFVcV (ORCPT ); Tue, 6 Sep 2022 17:32:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 794B49AFF0; Tue, 6 Sep 2022 14:32:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0FAC7616C3; Tue, 6 Sep 2022 21:32:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF4FC433C1; Tue, 6 Sep 2022 21:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662499939; bh=J7BmvjygBiGVStobKm9U8zrpENawx9NTfs1Ee7DF3lo=; h=Date:From:To:Cc:Subject:From; b=YfZGMl3m9FXONN+vkHsrX7P88oAInopcLyju2VuOLR61lqEO8Kmq8TusVNZd+49xq 01r4DQEE33vWzWL6TvYLwailnevAm/s1cpLNLIz9ITeC3/dADIEzihspa1EGkD0lf2 MeKqVvGyyFnrGYoSqAlLXluLQnwVMswOxpuupaldlqtxX0frAGsEgKqe3jtgnf00S5 UuSg54Zw0Fd8SI97e8dICq5uN+y5P55rSWTtU20A3lysjyLODdEF4Be6+P9Iv6ZlQc 8f+h0d3tZ/aST3TnUg2MEBYflsRkAhnOlmfDmGhisha1sv5dSQ2iICKfKPHP5ZXxCV snkYhA5fZczoQ== Date: Tue, 6 Sep 2022 22:32:13 +0100 From: "Gustavo A. R. Silva" To: Scott Wood , Michael Ellerman , Nicholas Piggin , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] powerpc: Fix fall-through warning for Clang Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Link: https://github.com/KSPP/linux/issues/198 Reported-by: kernel test robot Link: https://lore.kernel.org/lkml/202209061224.KxORRGVg-lkp@intel.com/ Signed-off-by: Gustavo A. R. Silva Reviewed-by: Kees Cook --- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c index 48f3acfece0b..0b8f2101c5fb 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c @@ -159,6 +159,7 @@ static void __init mpc85xx_cds_pci_irq_fixup(struct pci_dev *dev) else dev->irq = 10; pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq); + break; default: break; }