From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbcGPUum (ORCPT ); Sat, 16 Jul 2016 16:50:42 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38880 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751666AbcGPUuj (ORCPT ); Sat, 16 Jul 2016 16:50:39 -0400 Date: Sat, 16 Jul 2016 13:50:29 -0700 From: tip-bot for Wang Nan Message-ID: Cc: lizefan@huawei.com, wangnan0@huawei.com, linux-kernel@vger.kernel.org, mhiramat@kernel.org, jolsa@kernel.org, hpa@zytor.com, mingo@kernel.org, namhyung@kernel.org, nilayvaish@gmail.com, acme@redhat.com, tglx@linutronix.de, hekuang@huawei.com Reply-To: acme@redhat.com, hekuang@huawei.com, tglx@linutronix.de, nilayvaish@gmail.com, namhyung@kernel.org, hpa@zytor.com, mingo@kernel.org, mhiramat@kernel.org, jolsa@kernel.org, wangnan0@huawei.com, linux-kernel@vger.kernel.org, lizefan@huawei.com In-Reply-To: <1468485287-33422-13-git-send-email-wangnan0@huawei.com> References: <1468485287-33422-13-git-send-email-wangnan0@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf evlist: Make {pause,resume} internal helpers Git-Commit-ID: f6cdff8329e04b08cbc195194223e9dbadeeaa1e 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: f6cdff8329e04b08cbc195194223e9dbadeeaa1e Gitweb: http://git.kernel.org/tip/f6cdff8329e04b08cbc195194223e9dbadeeaa1e Author: Wang Nan AuthorDate: Thu, 14 Jul 2016 08:34:44 +0000 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 15 Jul 2016 17:27:50 -0300 perf evlist: Make {pause,resume} internal helpers There's no user of these two function outside evlist.c. Remove them from public namespace. Signed-off-by: Wang Nan Acked-by: Jiri Olsa Cc: He Kuang Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Nilay Vaish Cc: Zefan Li Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1468485287-33422-13-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/evlist.c | 4 ++-- tools/perf/util/evlist.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 93ab664..2a40b8e 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -708,12 +708,12 @@ static int perf_evlist__set_paused(struct perf_evlist *evlist, bool value) return 0; } -int perf_evlist__pause(struct perf_evlist *evlist) +static int perf_evlist__pause(struct perf_evlist *evlist) { return perf_evlist__set_paused(evlist, true); } -int perf_evlist__resume(struct perf_evlist *evlist) +static int perf_evlist__resume(struct perf_evlist *evlist) { return perf_evlist__set_paused(evlist, false); } diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 20faaab..4fd034f 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h @@ -182,8 +182,6 @@ void perf_evlist__mmap_read_catchup(struct perf_evlist *evlist, int idx); void perf_evlist__mmap_consume(struct perf_evlist *evlist, int idx); -int perf_evlist__pause(struct perf_evlist *evlist); -int perf_evlist__resume(struct perf_evlist *evlist); int perf_evlist__open(struct perf_evlist *evlist); void perf_evlist__close(struct perf_evlist *evlist);