Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4019218pxf; Mon, 29 Mar 2021 18:57:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwQT7F80SQxMn1rMw9E09T/32fQFHasP4ufJfifRCYHjHU7La6htofiXW9WbcJvDqpx704 X-Received: by 2002:a17:906:f296:: with SMTP id gu22mr30578620ejb.20.1617069439067; Mon, 29 Mar 2021 18:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617069439; cv=none; d=google.com; s=arc-20160816; b=q+gQVXFmA/lPGtq6F20k94YOqszNY+QA+Iq0SfxE4RwuQJXbctMAisCMgeZ7Q6qGid RNVxiivsDf0PQ86ndQ/lz9ysFnrx71Y55CvsS6aVdnnSDG6gb7hJkqhrsVZuX+WWT4id BCEwFcPOcoFWhkRIbkXKjsJ7uAd+YKtFl0eH9hOO66BAMBLKOCLT/md/xun+SBVa8Qh5 3aAcdmezcuzRBWFolaeWVaDCX6cOykXLyO5pSDwQhcNB73nIIy9Iy39yfUTawJqjkH6X /ZPDhcZKL5ZuT2bsj+NlAG5JV8miBTYDt9F1BV41Ctp9XtRSu+nSBV+rHg23v6qp2nGj OzkQ== 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=d++p/bOA7jh56/wgNwPsWscas6W8tOM1H+5FZXCWzCw=; b=xF1RXF/qRYG0v8eDOiippJYWKQHk66+nl1GNU+0A4O8OJ32a6MWBTdbMFrqEJJoQcn 8ntnpvGphszle9o53sC0iwgG+C0Oa+EtSD+9Tp82GygWs1hm1dt122euhyWbd6NMwSiH huIfMcIVvPKA+aiNqXnm8itHVr8L7jdQgGCtWJ3Nw22e5KhVuCyltKqJt1qaW6uVnQSC HclFvWNHbVX9fXaL2ggBn/VOMngWRSabyvgtjLP7OcsDjYVVSOYvfE561VtHcwGZVFVY XeL2WIe/E28gDh0ct9T7O8DukfKYJR8X6VuaTIs6k+JhgUx9jHGT36u3ePLhtb0QMi+S Lxqg== 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 m10si12829106edd.22.2021.03.29.18.56.56; Mon, 29 Mar 2021 18:57:19 -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 S229709AbhC3Bzr (ORCPT + 99 others); Mon, 29 Mar 2021 21:55:47 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:14780 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbhC3Bzc (ORCPT ); Mon, 29 Mar 2021 21:55:32 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id A55F4980138; Tue, 30 Mar 2021 09:55:27 +0800 (CST) From: Wan Jiabing To: Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] linux/trace_events.h: Remove duplicate struct declaration Date: Tue, 30 Mar 2021 09:55:17 +0800 Message-Id: <20210330015517.2264721-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 oVCBIfWUFZHUNLSU1DS0oYHUlJVkpNSkxLTUJISUxDTU1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PRQ6Ejo*Fz8IMDAIC1YRSjk8 SE8wCkJVSlVKTUpMS01CSElDSk1KVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKQ0JKNwY+ X-HM-Tid: 0a7880d7c5aed992kuwsa55f4980138 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct trace_array is declared twice. One has been declared at forward struct declaration. Remove the duplicate. And sort these forward declarations alphabetically. Signed-off-by: Wan Jiabing --- include/linux/trace_events.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 28e7af1406f2..29ae3ec5cab9 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -10,11 +10,11 @@ #include #include -struct trace_array; struct array_buffer; -struct tracer; -struct dentry; struct bpf_prog; +struct dentry; +struct tracer; +struct trace_array; const char *trace_print_flags_seq(struct trace_seq *p, const char *delim, unsigned long flags, @@ -404,7 +404,6 @@ trace_get_fields(struct trace_event_call *event_call) return event_call->class->get_fields(event_call); } -struct trace_array; struct trace_subsystem_dir; enum { -- 2.25.1