Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4133297ybi; Mon, 15 Jul 2019 04:24:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmuKGtdPuFFXMwzPnF07ljZn3BA7TZ7mt+Xp2GMLJMdr9Jikac14sR0+6VICgchW1BMWQA X-Received: by 2002:a17:902:a9ca:: with SMTP id b10mr27071460plr.69.1563189847472; Mon, 15 Jul 2019 04:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563189847; cv=pass; d=google.com; s=arc-20160816; b=J/FIyUv1HiNAn2HENMIL8yM+ygZ6qhYBXIoj1Or/BKQkQGvjSWITF/8eQAyY08249V +TP1fOmbPho3mcjWJOgv4yxnydIixy/OPwKEyPC88t4SN9Timg+lAoohHVtliQq5iHWC ZWWlfCVSO/2S6EphRWD3TiwNOiVxTGVx+bgzaOaeqCAEkXXKnDm4v12+AKxHqu7Ydhw5 TY7SfvkL2uV0sdlPZTJBqCXHD2ucFTnh/eefZpvliK5siG9NVfpbODu9DFGCqcJMJeGE P9Z1txcHG9VhytD5DBjz52ZXWowkhahmVCstApau7HjRm0ogcA/OiW4nu7ogd+5OOYk3 wTaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=8daD0eRpBqY5IVzrs0TzMVIyvmpLdU2ovRIGcJA/4BA=; b=XjAW+a9HoT1nNk0ET+lODs7iV1Miq2drxrpdHnbs4WxnOpNsnG+cjZlBp4pvvdYtap iJFWCjatPjIo1njgV7quBIQvBhGlHP049Z+K1A9rf8WhZ1ZeTh8hs06cpQI9ONBsBsjk JpVzeiNRS5eQ8KQ4ObI0acY0L3dPYb0TppJ37zmjVGW7mwPQMEnsMSijScxXCQuVZBha e/As0NTqnLC6hULiKa4Zcm/uKY0vHyFtiGUDPohZHKZlX56Gz/+wuPbb1uDbV0BLygc5 je1Dd+Rx41popHrRmJiWV+cjfCY+TlW9lt9Dd1v9nlwfgRw3IU3QBV9xX9zjxa2z0/iB ahpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavesemi-onmicrosoft-com header.b=aQU0sE59; arc=pass (i=1 spf=pass spfdomain=wavecomp.com dkim=pass dkdomain=mips.com dmarc=pass fromdomain=mips.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 83si16581854pgc.207.2019.07.15.04.23.50; Mon, 15 Jul 2019 04:24:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavesemi-onmicrosoft-com header.b=aQU0sE59; arc=pass (i=1 spf=pass spfdomain=wavecomp.com dkim=pass dkdomain=mips.com dmarc=pass fromdomain=mips.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729867AbfGOLW6 (ORCPT + 99 others); Mon, 15 Jul 2019 07:22:58 -0400 Received: from mail-eopbgr820108.outbound.protection.outlook.com ([40.107.82.108]:2209 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729725AbfGOLW5 (ORCPT ); Mon, 15 Jul 2019 07:22:57 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CPAEnmRV+dbPRFse/XnoJuqMC5tO5QAwBnD7t/cDMz+LmB+ZzZYRISagqg5dWW9nRU/A02+CsNptjkMfQGW3Y216fBCWULHcxigHQJBVfFpCfqk/vggF9F24yNKn7AyF3xKiWBrRKAC/nFOOvvW8Zb5WT/14X06h0Z9U/G0mRJhjHsa75re/8s+dT1aeyDNRSNxRJgZfke7zP0I8OTDTMJ8k24n1k2a4ltMfUy1K4gOOG8Yaqk4AZ0HSPJZUpGsaeTk00GZbS8Bkn3Cz9amD33ZIQ/NjPLln49MuIM8A6FJpsBBpL14tLITQf74UNs+cHQv0whRzuTX5ZDuKUxC6AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8daD0eRpBqY5IVzrs0TzMVIyvmpLdU2ovRIGcJA/4BA=; b=a4wc3z6TAAI/EuMF/Y1srlrm/HVNi1aGzN81IoUpOSQQE+YH+bNBVAoOak4m3m/cO6/ymIprAT4aYPmb3YSIqRDL8TC8s4s5PGGZUsF/wNmcfxlh+TDy3q8EoXNglt6sZj4OCMX4SHejt1Ba+PH9BuelWzLKxungjbwqQKcBENOLcd9kXQ5jpFMUBLc3OmlKVbtaKUZiEJEx8yS63FkQYjN6X1G+/d8pIF9hv293C+WMMY95l2uKfPIdk96FD7Tb3Y9xPkOdvZtuzj/b1qmbCduY5V2XbVCFzJi7C9HYOF/Xxux4sggvPsl/jF4z1JMkK82F9uGFyy5Lg/9nhsqOlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=wavecomp.com;dmarc=pass action=none header.from=mips.com;dkim=pass header.d=mips.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavesemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8daD0eRpBqY5IVzrs0TzMVIyvmpLdU2ovRIGcJA/4BA=; b=aQU0sE59COcnJtgygcATpAzpwTY7KsVZxW+yCLDxh/hw4baWlcg+LPSu8tVHBpHROQTn6HNfLqJMzcMLjd1SZL8wSVUP1Q0Ou5vW+oXE7gJ09+WoOgll+Ae8MWJ0yDRalywjsqaPpvPByFr7lux69fio8+kLORmqwZB62GPFNBY= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.172.60.12) by MWHPR2201MB1261.namprd22.prod.outlook.com (10.172.60.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Mon, 15 Jul 2019 11:22:53 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::746d:883d:31:522e]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::746d:883d:31:522e%5]) with mapi id 15.20.2073.012; Mon, 15 Jul 2019 11:22:53 +0000 From: Paul Burton To: Stephen Rothwell CC: Ralf Baechle , Paul Burton , James Hogan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , "Gustavo A. R. Silva" , Kees Cook , "linux-kernel@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linux-mips@vger.kernel.org" Subject: Re: [PATCH] MIPS: perf events: handle switch statement falling through warnings Thread-Topic: [PATCH] MIPS: perf events: handle switch statement falling through warnings Thread-Index: AQHVOv+kczWDxEXrFUGBgYR+rnlhhg== Date: Mon, 15 Jul 2019 11:22:53 +0000 Message-ID: References: <20190715201540.1e4bb96a@canb.auug.org.au> In-Reply-To: <20190715201540.1e4bb96a@canb.auug.org.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CWLP265CA0096.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:50::36) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:18::12) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [188.30.202.102] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9b74e15c-9ef7-4aca-5026-08d70916c72f x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MWHPR2201MB1261; x-ms-traffictypediagnostic: MWHPR2201MB1261: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 00997889E7 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(376002)(396003)(136003)(39840400004)(366004)(189003)(199004)(478600001)(4326008)(44832011)(33656002)(66066001)(71190400001)(71200400001)(53936002)(68736007)(6246003)(52536014)(7416002)(7736002)(305945005)(2906002)(229853002)(256004)(8676002)(6916009)(74316002)(102836004)(14454004)(6116002)(3846002)(186003)(99286004)(55236004)(26005)(11346002)(54906003)(55016002)(476003)(9686003)(25786009)(81156014)(81166006)(486006)(64756008)(66556008)(66476007)(8936002)(66946007)(66446008)(52116002)(7696005)(42882007)(386003)(76176011)(6506007)(5660300002)(316002)(446003)(6436002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1261;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ZnQpayfGlXrIsJL/BWXkoA/3P8l8ITCIrutbLr/B3B7xG4J7aaeZoFIqEBwPeUcFUlWr67MLTn+6x+wPCRpSVyBjePuodYNH/ASv2/PzeQKQIP1HQgr6zB4jxtx28W0II3H9DVHUl6u7fCcl02CzgOpL2Zutxuh/jVcXpkO5CkW9ytgcupeppO8eO04YORYCgjeRY+Nth3r3ZBA6sB4316f4pOaVpHEaSez/rEKsl9UhBPOJeI+nG0Ca3GcfuRZE58GwbIBj6G35b4YVMTp7ySXlM3ChbamcE7mDDj1I3lwFJEjX5clXdmjTnGTHysxFLHaFVvoBmSFN2j2q4J6BYmQFHyFJu3qleuBH7g1jvdj6ppQWCqq+SD1jc3/ADak964BqCV+luJL5lakFsqE31k+UNyqQpKCZVDFxs8BXbE8= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b74e15c-9ef7-4aca-5026-08d70916c72f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2019 11:22:53.5254 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pburton@wavecomp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1261 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Stephen Rothwell wrote: > Now that we build with -Wimplicit-fallthrough=3D3, some warnings are > produced in the arch/mips perf events code that are promoted to errors: >=20 > arch/mips/kernel/perf_event_mipsxx.c:792:3: error: this statement may fal= l through [-Werror=3Dimplicit-fallthrough=3D] > arch/mips/kernel/perf_event_mipsxx.c:795:3: error: this statement may fal= l through [-Werror=3Dimplicit-fallthrough=3D] > arch/mips/kernel/perf_event_mipsxx.c:798:3: error: this statement may fal= l through [-Werror=3Dimplicit-fallthrough=3D] > arch/mips/kernel/perf_event_mipsxx.c:1407:6: error: this statement may fa= ll through [-Werror=3Dimplicit-fallthrough=3D] >=20 > Assume the fall throughs are deliberate amd annotate/eliminate them. >=20 > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Gustavo A. R. Silva > Cc: Kees Cook > Signed-off-by: Stephen Rothwell Applied (with some tweaks) to mips-next. Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paul.burton@mips.com to report it. ]