Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3329709imu; Sun, 11 Nov 2018 12:30:42 -0800 (PST) X-Google-Smtp-Source: AJdET5fQ2hIAuko7IMUHXmgK4nsCgy4eA45KEmmfQgSgKazujj9z5xcNdfHVZy0iCYejK/QodtnE X-Received: by 2002:a65:5c81:: with SMTP id a1-v6mr14844474pgt.390.1541968241993; Sun, 11 Nov 2018 12:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968241; cv=none; d=google.com; s=arc-20160816; b=jAn77uaefT8z3bSUnUziy7sUt+QoHeEIB0S4kUbFnSg9b9UuSzOaTcDO6YCoXlQwhy /+yCWdbB1QMknW8/XpYg90UIqpezcOQ+iSjD9mkP3WmaeGdo3Yn8Lf+3HcsBMJ9fCynb uSbJumz07EVnYNvwj/jC1GLgyHP/dS+lnOZmxI9gIpDGpV3tHfCwJb9uWhAH1J58i5R6 tsLdQwuUjj5dwrp4j9lP51DH9SN/5PvzWXsH/3njwv5dnLhabQwbZTf4rjhqeIMNMunK cMv2fdL+UsrFXvTMBkJ4tnbg0CiDUfzE2bCRAL00L3Sra7EkawOrN3jkeBJFWPEsl8Wn U82g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=Jk1QwanfbzJZwa4vqJR7HtgSciiRO1t/eIuR7gaxLlg=; b=zY/jQka4YUs9pOal+wVLK5UWmkQu0E81xZcpJnrWrXGoaQfG+d1X2Phxop9PN1UxdS tuPUBgD9+Ru2NM/mDVWR/74vJthz3qLAlHGquFn2GPOJxgZ6oRxg3mDlJP9nM/Qj7iyh 1apMjDgKTH25wavmG6X7SLp/2s5yPbnsfIWfVQ1qM8YAhW2j5Vl2VcR2cXHM7u4cEy1e Lu+6pmB2x5q7ARrutOoIU89SSIqhsZxBFZGxtWkuDzvYhXyHSwACSEv4a0yR+lki2u9l YH8Q69310nfEoPsg7YsmTYffPkKNovEv5cqOkX1yuPW1nnUaFHpGfunCLtmVrPMR2Okb XHbQ== ARC-Authentication-Results: i=1; mx.google.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 59-v6si4287864plb.75.2018.11.11.12.30.27; Sun, 11 Nov 2018 12:30:41 -0800 (PST) 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; 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 S1730483AbeKLFsW (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:22 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50326 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730391AbeKLFsT (ORCPT ); Mon, 12 Nov 2018 00:48:19 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsf-0000l6-3r; Sun, 11 Nov 2018 19:58:49 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsa-0001tQ-T8; Sun, 11 Nov 2018 19:58:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Jiri Olsa" , "David Ahern" , "Arnaldo Carvalho de Melo" , "Namhyung Kim" , "Wang Nan" , "Adrian Hunter" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 359/366] perf top: Use __fallthrough In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Arnaldo Carvalho de Melo commit 7b0214b702ad8e124e039a317beeebb3f020d125 upstream. The implicit fall through case label here is intended, so let us inform that to gcc >= 7: CC /tmp/build/perf/builtin-top.o builtin-top.c: In function 'display_thread': builtin-top.c:644:7: error: this statement may fall through [-Werror=implicit-fallthrough=] if (errno == EINTR) ^ builtin-top.c:647:3: note: here default: ^~~~~~~ Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-lmcfnnyx9ic0m6j0aud98p4e@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Ben Hutchings --- tools/perf/builtin-top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -609,7 +609,7 @@ repeat: case -1: if (errno == EINTR) continue; - /* Fall trhu */ + __fallthrough; default: c = getc(stdin); tcsetattr(0, TCSAFLUSH, &save);