Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp61683pxa; Fri, 21 Aug 2020 00:51:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7jU8HUhlUGHxh7x9PD2FyM7L/48JwIpcCdh9cR7FgG8o6YnyNFN8IlrJDqJNZuC+8qksL X-Received: by 2002:a17:906:640c:: with SMTP id d12mr1672345ejm.388.1597996283070; Fri, 21 Aug 2020 00:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597996283; cv=none; d=google.com; s=arc-20160816; b=BUeIuZzyfW378KAYjEvFFaYnd85Nbreoyb0g/C7J/KQO4r4nxUn+xWRS7lj8dtn4dQ x6ny0R6Eog6XZQ0RP6CyHqJInintTSrriA4jkgzgsufsViKdN9bsR3i4FmGQOIeM0aCh UlkdDF58k1S0E2frPFeyBsAQfPoX3LSKRZdsV2lwCGaeMokm8eIQjIi22HP64KpDrSaq ROVAfwu8Hc4kKG1Hjvrgjt2Znb6hnJN2MKNAVO7hpeF09rfxSLendtURm7Ksu2NE2moc 43Zpg9+ZBPAgwsn+SEXU4DksZopE5zhImCsj7HNHlqtsZUMKMZbwkY3cUvWDcq2tmNL2 y2ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CtMvqSvjlITU3uLps3sc4Oazf1Gdx3DWYpYe4V01uWI=; b=w2bCWJGPkwhgSsJtVZeEET8KMYSjP2hMdoEVx/8ibox870Nu1nq2LV9rOEyB1rZebA qwknM7BUH82JBh7twcT45Ias2f05Umd6mAKml8P+k+rbOHWUh+fv8p+RI+EoBt+s4rBT 7wD5ftoWEmNjVr6yPvvi3TETWrpiFeyrqvyHabKG6RBWRktiZmKIJbuF9ot2DsQgEIC9 q5Wu0CXCwUxPAoQU2JEAT5HrL9c6PeWfo3Kz341AlqnJiadrkPvULFeVs/bpAphjJygn DtyqQnoh3JtquL85YuK46ITTSKuMf6HuHsdTjoPAY9CJEimNWk3RosfC7Nb09wwUaB5a ok7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm20si620062edb.583.2020.08.21.00.50.59; Fri, 21 Aug 2020 00:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbgHUHuN (ORCPT + 99 others); Fri, 21 Aug 2020 03:50:13 -0400 Received: from elvis.franken.de ([193.175.24.41]:54238 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgHUHuM (ORCPT ); Fri, 21 Aug 2020 03:50:12 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1k91oP-00079q-03; Fri, 21 Aug 2020 09:50:09 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 6E382C0D89; Fri, 21 Aug 2020 09:48:21 +0200 (CEST) Date: Fri, 21 Aug 2020 09:48:21 +0200 From: Thomas Bogendoerfer To: zhe.he@windriver.com Cc: rric@kernel.org, oprofile-list@lists.sf.net, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mips/oprofile: Fix fallthrough placement Message-ID: <20200821074821.GD8336@alpha.franken.de> References: <20200820125440.350184-1-zhe.he@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200820125440.350184-1-zhe.he@windriver.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 20, 2020 at 08:54:40PM +0800, zhe.he@windriver.com wrote: > From: He Zhe > > We want neither > " > include/linux/compiler_attributes.h:201:41: warning: statement will never > be executed [-Wswitch-unreachable] > 201 | # define fallthrough __attribute__((__fallthrough__)) > | ^~~~~~~~~~~~~ > " > nor > " > include/linux/compiler_attributes.h:201:41: warning: attribute > 'fallthrough' not preceding a case label or default label > 201 | # define fallthrough __attribute__((__fallthrough__)) > | ^~~~~~~~~~~~~ > " > > It's not worth adding one more macro. Let's simply place the fallthrough > in between the expansions. > > Signed-off-by: He Zhe there is already another patch for the problem, which I've applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]