Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp119025pxf; Tue, 6 Apr 2021 16:50:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrIptwKjyezH83Nh/MtWnfwEt4hmdSEoCT8DdPa0Fc5jIyNzpnpzYrTYoW2/ocJMP/fk7o X-Received: by 2002:a05:6638:43:: with SMTP id a3mr625189jap.102.1617753056966; Tue, 06 Apr 2021 16:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617753056; cv=none; d=google.com; s=arc-20160816; b=mCCRxel2AJdvBUmEip3pFd+WqvqZ7YZX3YSuux7NnsmxoReYrl2S9kJ4nQ1akSIG8E 4/yRe1x+mcw4VItW3FH8CZactArLDwSyyoOBpjTOsC0TIPNjGUQPQB4AygSAlxGAhf+9 u0uJPLG5hsw+A82R3Ef2uN0N8upUwZLm4H8yVBk0f8IFZDauqqy+ELfvNuq4CQnVhssR QOB78gHPtQ7mBjxXBLe79oFB0M7bTnX+7sZ6ImbmPNsc7krPpY+RKkSxZjmTVPrgzUPX LrRfDUHhk5EQREKQ9zgb7SYeHodyd1GfFn8QH6s+8bEwQpdPUjbkDhuJgynJCIVBggB3 OuYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QNOGSKVoihcfy616n2n86FHaHCeR7MJFdDV/+GKrGHU=; b=Yf9QldC81ix5z+m9bEjUPRofpOVQ7Qk7N2Ducfn2z9vxTtKpa5G8+3/M6p8itvLZ4O bGeeAuh27Soxzs4H4s3UubqWoSt4x/OmcAtqJ31pZGeaJPFpsMYyTPvEYNvkQy+AZpwL 3VrDlqR4/DMzLIUquOvo8Yvs91jdAy5BfRZyjCQaETASLUpK4O/d8/eUZWgZ6P8zC45W TcCe55hg6SmX+veLV9Lnxh+4SBWWI1l378j71vBw9vNEUxKXQyMnG1fiY40eKdY/Hbmw fp6Joi0KgTPnsOGPmEY/qkSs6nC1eWKTUWIjomqMl9KFY158apnvYxmLDw9vDGQHmY30 052A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si19814654iol.88.2021.04.06.16.50.41; Tue, 06 Apr 2021 16:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241415AbhDFKwX (ORCPT + 99 others); Tue, 6 Apr 2021 06:52:23 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:31554 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbhDFKwW (ORCPT ); Tue, 6 Apr 2021 06:52:22 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id 6DA4198011C; Tue, 6 Apr 2021 18:52:12 +0800 (CST) From: Wan Jiabing To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kan Liang , Leo Yan , Wan Jiabing , Ian Rogers , linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] perf: util/mem-events.h: Remove unnecessary struct declaration Date: Tue, 6 Apr 2021 18:51:02 +0800 Message-Id: <20210406105104.675879-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSB1KSUpPGhgdSkhLVkpNSkxMS01ISElMTk9VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MEk6PDo6Tz8JPC00Ii00LD1O AT8KC0tVSlVKTUpMTEtNSEhIS0lCVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJSU5LNwY+ X-HM-Tid: 0a78a6cfb20fd992kuws6da4198011c Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct mem_info is defined at 22nd line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- tools/perf/util/mem-events.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/util/mem-events.h b/tools/perf/util/mem-events.h index 755cef7e0625..5ddbeaa057b0 100644 --- a/tools/perf/util/mem-events.h +++ b/tools/perf/util/mem-events.h @@ -44,7 +44,6 @@ bool is_mem_loads_aux_event(struct evsel *leader); void perf_mem_events__list(void); -struct mem_info; int perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info); int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info); int perf_mem__snp_scnprintf(char *out, size_t sz, struct mem_info *mem_info); -- 2.25.1