Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4152268pxf; Tue, 6 Apr 2021 09:06:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFWJ+O0BxE6JxVETXuPWpTQ4AUZlnLzDf7a2JnTK2E32VqNibMRExMsHNQL+M+j9cKq5Kf X-Received: by 2002:a17:906:d8a3:: with SMTP id qc3mr12617409ejb.353.1617725187553; Tue, 06 Apr 2021 09:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617725187; cv=none; d=google.com; s=arc-20160816; b=uwECVmWO+3dC8CZohMZlqzmgTukpUsJU05K8ZawJZcVeuJ4CqNGGynMI41eHP4v3kk 7+XxhKRGLgroMXJl6VKU7EBPHFTrbuXWPz6iUs4U+ldYFlrK5dRaiob/i+8vO496bEok hYhcLropAsAJIhRomc0htnpYll38PvOcGDeLhLKwcfki5UO1HqoH+tkfQcEsijnp3OXd nwhgBDbspTzKbMXKkkWoBwODx8+gj6Uf3qbNSa9EJKRlmrZw4mdgXJjgGaKbGwG9U78N gRgCslt/hshbfzJrDUWPWLWFkNsEM2a/czVmoxNcJeU0Y0Ge8e+h18ymIy7PPPwzNavA n84w== 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=L6BOAbyL9UBSJhDp8A3j7peWFpfXC2hdyjAYAWV83VE=; b=mYLcUAgPszZPVvGCOS+MpCtiOxO5+FPbbTo9bg4YPtXYxwlPlIztm36E5879kNl+Kf UK1NXDwJShQY3W9Hmf1GaWelllZ97Tc0l3aC7kWh3+7PNNWK3JYtjoRircMiZn6KwVY9 XxDtdTv1z4Xo2A8p8N8zPnVRvkP1i3WKgRi5tTXBJ4BLFdrRJ3yivnAIBvqJxuYHhKNs rBrFAFQ5Rmy2bDqtLew4KDqtL+OSsFc4QN3WCU51ALWhSo1dEheDuZr5a/sLAKooe0g+ wM+UdnA7s38baLoFPjuyNi++URdvD8oz7L4sr2ny6aP8TyrRUygXiN5l8nFHFYhJl95M FQIA== 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 ds7si18931521ejc.534.2021.04.06.09.06.01; Tue, 06 Apr 2021 09:06:27 -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 S244058AbhDFGm7 (ORCPT + 99 others); Tue, 6 Apr 2021 02:42:59 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:37418 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234031AbhDFGm7 (ORCPT ); Tue, 6 Apr 2021 02:42:59 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id 5622B980148; Tue, 6 Apr 2021 14:42:50 +0800 (CST) From: Wan Jiabing To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kan Liang , Andi Kleen , Wan Jiabing , linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] tools: perf: util: Remove unnecessary struct declaration Date: Tue, 6 Apr 2021 14:42:06 +0800 Message-Id: <20210406064214.523650-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 oVCBIfWUFZGEhCTB1CGRkZTksfVkpNSkxNQkpITEtMT05VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PxQ6TCo*Iz8SGi0YHD08MjAh MwsaCStVSlVKTUpMTUJKSExKSkNDVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJS0pINwY+ X-HM-Tid: 0a78a5eb6495d992kuws5622b980148 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct feat_fd is defined at 93rd line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- tools/perf/util/header.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 2aca71763ecf..3b1d284ee18c 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h @@ -149,8 +149,6 @@ bool is_perf_magic(u64 magic); #define NAME_ALIGN 64 -struct feat_fd; - int do_write(struct feat_fd *fd, const void *buf, size_t size); int write_padded(struct feat_fd *fd, const void *bf, -- 2.25.1