From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932845AbcCHKah (ORCPT ); Tue, 8 Mar 2016 05:30:37 -0500 Received: from torg.zytor.com ([198.137.202.12]:44912 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753631AbcCHKaZ (ORCPT ); Tue, 8 Mar 2016 05:30:25 -0500 Date: Tue, 8 Mar 2016 02:29:36 -0800 From: tip-bot for Colin Ian King Message-ID: Cc: dsahern@gmail.com, wangnan0@huawei.com, acme@redhat.com, mingo@kernel.org, namhyung@kernel.org, tglx@linutronix.de, peterz@infradead.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, hekuang@huawei.com, colin.king@canonical.com, jolsa@kernel.org Reply-To: mingo@kernel.org, namhyung@kernel.org, tglx@linutronix.de, dsahern@gmail.com, wangnan0@huawei.com, acme@redhat.com, hpa@zytor.com, hekuang@huawei.com, colin.king@canonical.com, jolsa@kernel.org, peterz@infradead.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, linux-kernel@vger.kernel.org In-Reply-To: <1457008214-14393-1-git-send-email-colin.king@canonical.com> References: <1457008214-14393-1-git-send-email-colin.king@canonical.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Explicitly declare inc_group_count as a void function Git-Commit-ID: 07ef7574458369cb0345facc748e964af68a75f4 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 07ef7574458369cb0345facc748e964af68a75f4 Gitweb: http://git.kernel.org/tip/07ef7574458369cb0345facc748e964af68a75f4 Author: Colin Ian King AuthorDate: Mon, 7 Mar 2016 16:44:37 -0300 Committer: Ingo Molnar CommitDate: Tue, 8 Mar 2016 10:11:16 +0100 perf tools: Explicitly declare inc_group_count as a void function The return type is not defined, so it defaults to int, however, the function is not returning anything, so this is clearly not correct. Make it a void function. Signed-off-by: Colin Ian King Signed-off-by: Arnaldo Carvalho de Melo Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Wang Nan Link: http://lkml.kernel.org/r/1457008214-14393-1-git-send-email-colin.king@canonical.com Signed-off-by: Ingo Molnar --- tools/perf/util/parse-events.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index 85c44ba..5be4a5f 100644 --- a/tools/perf/util/parse-events.y +++ b/tools/perf/util/parse-events.y @@ -28,7 +28,7 @@ do { \ INIT_LIST_HEAD(list); \ } while (0) -static inc_group_count(struct list_head *list, +static void inc_group_count(struct list_head *list, struct parse_events_evlist *data) { /* Count groups only have more than 1 members */