Received: by 10.213.65.68 with SMTP id h4csp160865imn; Mon, 19 Mar 2018 23:31:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELsXZ3LkNbgp48gptM9TqcSijffj9BY0TsbgC8krDTtGgGNRyY9Ke2L69pXNz/YUoo1NhEP3 X-Received: by 10.101.82.203 with SMTP id z11mr11257814pgp.245.1521527506513; Mon, 19 Mar 2018 23:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521527506; cv=none; d=google.com; s=arc-20160816; b=ZfU/R2qlMh3Njn2Rnwh7ercmoxS9ap+QetcCQSURnOGqQeVaBvXq/F8qvi+89EXcm+ iiC2U2/i2v/hUt5NAAOpwRcpabjgSeINrwuOBzRA3+qSajsi6CPTRowCVqcV+2FAldmT 6BAoDYXjFKK3LOUn6C71QILausbFQw8jTHtAHU/gnkuntW8cKRPXvkDindUPJ6AJe1fz 6owQhGNrFuZd+3WTlRqcNV1xKgieKFh3VZjF7ig3iGJQqvCZuXo0unzE5d/m6wz5Mw4+ ih3+gQBtvyfG4I3WRciER4NukPCYfoaNouKyDsVoL2ENVAwyotzbpLsyyfMjKxkwvLZ0 hFDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=7hZYZ+Q7PE77l0lo9a7gqU4ZShLY7WpL+a2YAwTUb5Q=; b=Nlr5VI9YQIbOWMuaHs3QHjQUywcs4YkIXMGfIOZeeifQK7Pd0F31Z3tSslo7hn38yR C8e00/gWcPt8NgvgE98balRiDeHaQ/FGd4c0DszrmOa8EgGZ+G1CmmQ2RGl9yBtL2CBP 3wwnJiRHis+9DQVTBZ+Y3ZoaZKVyPXlx7oFlRimk7z0FDzLZN1dMw/NdP0eJfm3VFUZj i1lYOP5x5oL2LzEnJyTruiFeVGKXa+/htOWizk+cCjLiyW8FnL5eEK7V/CA4qjF2egsC zEcPFQE7vSMDQYMAdA1icAT+Dv1kviveVs+p0KPX2lY1ZQt9Dd3LzI4fS0w6Z2DVKWB7 +nXA== 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 u189si789488pfu.212.2018.03.19.23.31.32; Mon, 19 Mar 2018 23:31:46 -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; 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 S1752039AbeCTGaE (ORCPT + 99 others); Tue, 20 Mar 2018 02:30:04 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59391 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751656AbeCTGaD (ORCPT ); Tue, 20 Mar 2018 02:30:03 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2K6TsgT031141; Mon, 19 Mar 2018 23:29:54 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2K6Tsus031138; Mon, 19 Mar 2018 23:29:54 -0700 Date: Mon, 19 Mar 2018 23:29:54 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thomas Richter Message-ID: Cc: tmricht@linux.vnet.ibm.com, brueckner@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, acme@redhat.com, mingo@kernel.org, schwidefsky@de.ibm.com, hpa@zytor.com, tglx@linutronix.de, heiko.carstens@de.ibm.com Reply-To: tglx@linutronix.de, hpa@zytor.com, heiko.carstens@de.ibm.com, acme@redhat.com, schwidefsky@de.ibm.com, mingo@kernel.org, linux-kernel@vger.kernel.org, brueckner@linux.vnet.ibm.com, tmricht@linux.vnet.ibm.com In-Reply-To: <20180312103807.45069-2-tmricht@linux.vnet.ibm.com> References: <20180312103807.45069-2-tmricht@linux.vnet.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf stat: Make function perf_stat_evsel_id_init static Git-Commit-ID: 26e4711fc8352252f474a02429d7495652c4aef7 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 26e4711fc8352252f474a02429d7495652c4aef7 Gitweb: https://git.kernel.org/tip/26e4711fc8352252f474a02429d7495652c4aef7 Author: Thomas Richter AuthorDate: Mon, 12 Mar 2018 11:38:07 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Mar 2018 13:56:17 -0300 perf stat: Make function perf_stat_evsel_id_init static Function perf_stat_evsel_id_init() has global linkage but is only used in util/stat.c. Make it static. Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Hendrik Brueckner Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180312103807.45069-2-tmricht@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/stat.c | 2 +- tools/perf/util/stat.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index 32235657c1ac..a0061e0b0fad 100644 --- a/tools/perf/util/stat.c +++ b/tools/perf/util/stat.c @@ -92,7 +92,7 @@ static const char *id_str[PERF_STAT_EVSEL_ID__MAX] = { }; #undef ID -void perf_stat_evsel_id_init(struct perf_evsel *evsel) +static void perf_stat_evsel_id_init(struct perf_evsel *evsel) { struct perf_stat_evsel *ps = evsel->stats; int i; diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h index 2f44e386a0e8..8f56ba4fd258 100644 --- a/tools/perf/util/stat.h +++ b/tools/perf/util/stat.h @@ -128,8 +128,6 @@ bool __perf_evsel_stat__is(struct perf_evsel *evsel, #define perf_stat_evsel__is(evsel, id) \ __perf_evsel_stat__is(evsel, PERF_STAT_EVSEL_ID__ ## id) -void perf_stat_evsel_id_init(struct perf_evsel *evsel); - extern struct runtime_stat rt_stat; extern struct stats walltime_nsecs_stats;