Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1960111pxp; Mon, 7 Mar 2022 05:56:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYcB3b9pJ2D4It3CWbftrK3CzBgqw70C6aQ2SY6g+dnd2LJz9pW84Op0+TzPuM/wuLMvUW X-Received: by 2002:a17:907:6e8f:b0:6da:8e96:95f2 with SMTP id sh15-20020a1709076e8f00b006da8e9695f2mr9035806ejc.489.1646661416283; Mon, 07 Mar 2022 05:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646661416; cv=none; d=google.com; s=arc-20160816; b=0PWa6A75qJPLmPlkXg55D+/E53CFpEVQiHx3kW5aUagQGwrNb9QdVt7T+lmfe8eYTM VthUg3Kd9o9GA1hVo7hvtNRWzckBrKmPe6+aHCoEzBHBYjHypoO7CaOYQVhQY+YepGJI vGcaLlpP23hZmXNzs9wro2fMyQVgukA1zMsxK25ry8nVCfQ6SfD79rDAON4SpnuJUYav 6jVHgpQIMRj5tXSBqI3mTrwVMm9tyDSlE8H2dJuP0+YPbWJqgVN09R9mceD6HfjIP709 aPBs6ed+qVNgjt/pXWSiCh/Zt2rQvKoQrxeMqPgeqIOxtWeSH2ddgqy4r5NrMvFakGrE ItHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=bVfI4gJtpV4rs1avj4SMgYuS6Lf0kdH3VLi7iHnu/Fc=; b=cmpGxBlaFlcnLhbBlW5prz7/uzo1mUcbvgPRmcKvhp+NOV6WGf1UQwFejRQlfr/QFE MM2gJVaPkb1DrjuDHkMk3KmUj5ayCHQ11EH12ZLuJe4nXDTrSZ1CIpglrrJGIj13hVNO TmAcJXuePJjREIn8Z/9LGpBnJ9ROcWgafbTSsTHe8xRKn45eTUYlyc1pFcUWQ1fhAcpY J4BQEmB99aylS8OBA1rtlSznh1kC+O15OB8gSY5mRS58LAQr7qN492FpklwoWGAg+5pt m5eGXh+Zp0pvN1o1cJlSrkd6XSMIAmHSv1uoTeiLbo7KayzeEG4cb/zdd/wQzLH56h8S qMNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jy1-20020a170907762100b006d06e910252si8180629ejc.291.2022.03.07.05.56.28; Mon, 07 Mar 2022 05:56:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242239AbiCGM02 (ORCPT + 99 others); Mon, 7 Mar 2022 07:26:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242132AbiCGM0T (ORCPT ); Mon, 7 Mar 2022 07:26:19 -0500 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 158E180924; Mon, 7 Mar 2022 04:25:25 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nRCQS-00072o-03; Mon, 07 Mar 2022 13:25:20 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id C86BDC1280; Mon, 7 Mar 2022 13:21:17 +0100 (CET) Date: Mon, 7 Mar 2022 13:21:17 +0100 From: Thomas Bogendoerfer To: "Maciej W. Rozycki" Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: Sanitise Cavium switch cases in TLB handler synthesizers Message-ID: <20220307122117.GD14422@alpha.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_HELO_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 04, 2022 at 09:13:11PM +0000, Maciej W. Rozycki wrote: > It makes no sense to fall through to `break'. Therefore reorder the > switch statements so as to have the Cavium cases first, followed by the > default case, which improves readability and pacifies code analysis > tools. No change in semantics, assembly produced is exactly the same. > > Reported-by: kernel test robot > Signed-off-by: Maciej W. Rozycki > Fixes: bc431d2153cc ("MIPS: Fix fall-through warnings for Clang") > --- > arch/mips/mm/tlbex.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]