Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91252C7618B for ; Mon, 29 Jul 2019 08:19:04 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4AE520644 for ; Mon, 29 Jul 2019 08:19:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="KuwtfCog" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4AE520644 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45xsz82c80zDqMm for ; Mon, 29 Jul 2019 18:19:00 +1000 (AEST) Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45xswt1J1vzDqDV for ; Mon, 29 Jul 2019 18:17:02 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="KuwtfCog"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45xswr3RwKz9s3l; Mon, 29 Jul 2019 18:17:00 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1564388221; bh=QTGSK8b6jLhRPZsvILGhaC9+i81pGyxrPcsA6pWARvg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KuwtfCoggLzAn9DYKFsM+bXE/v6CWP74qimFUg5dgIAr8+JdD+K/7r0ktzaEzCE3J BosHXKti9xtRlAk/vbPgy8Rcl6nXJ2ClwFsPCOzJsfQ+W/TMqdQwuaAZ/ekh66VSST EnlpJcbBIBX5Hk09Vf2bosLt/MZYf7LpBx5yx+SBdvbF5hpJJ2NRMPExjBksbmozTX OOb6xkWltTQ+EaDlpOFtdGjqcELU9Fm+ByCIBm9p+LP+fUVajgbV/4/LUx1NAJN5u5 hYB6uyrENyzMDROCCTp0DuHEHeulZlM6sQLncEi9sRTUhvXnS0PWn1GTcNrQXRRcpF dcbPTt9Y/i7wg== Date: Mon, 29 Jul 2019 18:16:51 +1000 From: Stephen Rothwell To: Santosh Sivaraj Subject: Re: [PATCH] powerpc/kvm: Fall through switch case explicitly Message-ID: <20190729181651.4b9586a7@canb.auug.org.au> In-Reply-To: <20190729055536.25591-1-santosh@fossix.org> References: <20190729055536.25591-1-santosh@fossix.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/rExPsN0GRo/hs_UJDe5wfcA"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev , Kees Cook , "Gustavo A. R. Silva" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" --Sig_/rExPsN0GRo/hs_UJDe5wfcA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Santosh, On Mon, 29 Jul 2019 11:25:36 +0530 Santosh Sivaraj wro= te: > > Implicit fallthrough warning was enabled globally which broke > the build. Make it explicit with a `fall through` comment. >=20 > Signed-off-by: Santosh Sivaraj > --- > arch/powerpc/kvm/book3s_32_mmu.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/arch/powerpc/kvm/book3s_32_mmu.c b/arch/powerpc/kvm/book3s_3= 2_mmu.c > index 653936177857..18f244aad7aa 100644 > --- a/arch/powerpc/kvm/book3s_32_mmu.c > +++ b/arch/powerpc/kvm/book3s_32_mmu.c > @@ -239,6 +239,7 @@ static int kvmppc_mmu_book3s_32_xlate_pte(struct kvm_= vcpu *vcpu, gva_t eaddr, > case 2: > case 6: > pte->may_write =3D true; > + /* fall through */ > case 3: > case 5: > case 7: > --=20 > 2.20.1 >=20 Thanks Reviewed-by: Stephen Rothwell This only shows up as a warning in a powerpc allyesconfig build. --=20 Cheers, Stephen Rothwell --Sig_/rExPsN0GRo/hs_UJDe5wfcA Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl0+q3QACgkQAVBC80lX 0Gyrrwf9FAW9tfADHo7wgSxpAXk7UBrDuhWFwjx4HCs0mEppx6Ut0CYRu6gD7BBq hly9Iik4uIGnTzlPqgyqAynHCBhfvmmV5Z0ZhKfAbozqW7hZr4vQaMAZHPCBgeOl SSYXYioMuLEmr1oiEn1NgdYVPqKGDf60zoQZTiQtgBjlCdLHIQtN/k+uShfzvMHD 697dhHCkzVzVWHfCVM3Put15/BPlYTDXFareolLnoO74Gdf7jIp+Gokrr7ILYuR3 SXstfk0NAvDFiI1U0bU2lAIxh+KY12HQfsipj4KgtVOD9Sw9jYJU83ZLvPhpawJz ZjgckByP5q7kdB8O6sLp1FBKC6Kaxw== =DLbG -----END PGP SIGNATURE----- --Sig_/rExPsN0GRo/hs_UJDe5wfcA--