Received: by 10.213.65.16 with SMTP id m16csp280320imf; Mon, 12 Mar 2018 03:39:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELvaoSnuH2y8GBujsDv0rPY7wtNrIz0QyihPWROQedRgJ1dEqI7kh5dVqEFjzi1k0aX0XcDr X-Received: by 2002:a17:902:9a8d:: with SMTP id w13-v6mr7721849plp.136.1520851195643; Mon, 12 Mar 2018 03:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520851195; cv=none; d=google.com; s=arc-20160816; b=aHGDiRKXna1xxdFRYq5N1BpXM/h1H6ToG99uR16UNAy4L6FdidHp1rbK8SdVKiDKGx xXOLRnMnm5ToOx5z3gwv+JOzrP6/+ZThqeDvVEIJ13PrgGAy1AberwsKVhzIq7zG8jVr VVhIPE+PGhJ7//RXKul7wBQAhGMtwWg4d1UmELG9IajncZ7YINn+APJeca1/U74cKb7R BpNvZObi50bFoWgXXTAHowEbJyu8aOxBnhEbDLI5ciRexwK6kJt4RJx0OhU5qDPZe5cS rnJFfw9ShM0rKaPp4kTREYZAfOkLLXsi0HqGQ+799qaQl7GDIPU1/iJRZsQ9z7xtAOZh JHDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=nj3KYCWVLq4cClh4CRs7JLfWji2+hcXnLeKjnWpo2ug=; b=W9OLMz0kkkFR4An4tQnrZgewxq2G4jmL8ZX2c587j3JWpcED9exTbPXKP39jYRGoyk eNp34+nf3WcyFEdYaI0cV0U+VH+ma+3K/kMJLi038xrzfH/4I78g7OFgM2nFPtBdIgOf 38Ju0UHSvteJHIsWVbA+Mczei0BQPfv2Kr89BQPFlvYZu/PNHo2hbKCq2DUvnNhQyNxc PFTTY7/uSWO6AcXMfEdbVHpTf2a05QQTGulQmVqnmwMXnoe4wo0ga4SY0/LlllCWtF+m ipBZdvthmNzWM4uwae2uguJfxl93KHXI2sMgiXJ3lBK0xbUFiK/J8bXTZHUnfJ6wdaPe iYbw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30-v6si1261229plg.541.2018.03.12.03.39.41; Mon, 12 Mar 2018 03:39:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbeCLKiS (ORCPT + 99 others); Mon, 12 Mar 2018 06:38:18 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34794 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752087AbeCLKiR (ORCPT ); Mon, 12 Mar 2018 06:38:17 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2CAYaTw167529 for ; Mon, 12 Mar 2018 06:38:16 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gnma58ebh-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 12 Mar 2018 06:38:16 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Mar 2018 10:38:14 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Mar 2018 10:38:13 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2CAcCWB52494372; Mon, 12 Mar 2018 10:38:12 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5490752049; Mon, 12 Mar 2018 09:29:45 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 004FD5203F; Mon, 12 Mar 2018 09:29:44 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Thomas Richter Subject: [PATCH] perf stat: Make function perf_stat_evsel_id_init static Date: Mon, 12 Mar 2018 11:38:07 +0100 X-Mailer: git-send-email 2.13.5 In-Reply-To: <20180312103807.45069-1-tmricht@linux.vnet.ibm.com> References: <20180312103807.45069-1-tmricht@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18031210-0008-0000-0000-000004DB6299 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031210-0009-0000-0000-00001E6E8F94 Message-Id: <20180312103807.45069-2-tmricht@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-12_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803120124 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 dbc6f7134f61..679994a5cd07 100644 --- a/tools/perf/util/stat.h +++ b/tools/perf/util/stat.h @@ -126,8 +126,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; -- 2.14.3