Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4059882pxf; Mon, 29 Mar 2021 20:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkgD/OTKtwTMYTn07C1a6Q4L4GBxq05HFXu4RQdcqjwYa+TJh5wvjhbb2mlWmKb95FR+yE X-Received: by 2002:a17:906:3544:: with SMTP id s4mr31941126eja.73.1617075055334; Mon, 29 Mar 2021 20:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617075055; cv=none; d=google.com; s=arc-20160816; b=CIWyQwjS9Tg4ZyK5GIzyAWwg8I6cEcwwOuFPAdQV4zJwucJ7Z7GpifMLg9j159V4D1 wKnwL9ryOe7TGd40gFBLckUoThHb9dVZ30KnenP2LwvxGIxsUGUSl73v8KvHiutwq1Fk SwrkrP6NH8+ktcdBIaYs1Cuc+7BKUdcnMCUHyeYp8M7OBmLlO6EF6rxqP+1lXguODuMq lcTp/28rK4QxYsOTF598hvSbfcltRaV0UlJII4BRrifcDccMkSQiOdWUhe29tsLMYSAh mTgRHW0LVCOWZp8QsAubj9U7XlQxto2Tx1EX/now/aUawjKGLm+7OuuBZ+OLjuNU+JIt JhJQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=OvTihKSQ7GQVkyi1xodLbWGXfo56eEzCy+FjUBxF1O8=; b=z+TpDb1S8UGW9TAqWDIJSsAqROMZEcULCXJa2FVVbrbDucKt0M/fSQy8o4NJhtorR0 mvOJNK+yvmA0poqgg/SPEGST/NSAvfYYBv6Tlpg8Z+o/T4NkaFiK+s7wUUGeH6SWNhvF h6Pk+1sPpJL86pK38i0h9nYRP0/hQ3EgVSAYGVaZllzjz0A7PGJdUuMIp0QhG/5ck6Vo 7lDc+/J7+gPale8fUGTwP+HEFwPOLEZY6cn3mjrB1Vu8vBeRT99KViXM8f2XLi11fAiJ 3tdO3X5nZ3K2WnLBZDL+nrzd1cfUfpd+O1ArEOPIFUXZK5do9sU22xsh0lIZ2nRtouU2 rkNg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si14128325ejz.565.2021.03.29.20.30.33; Mon, 29 Mar 2021 20:30:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbhC3D3n (ORCPT + 99 others); Mon, 29 Mar 2021 23:29:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:41336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbhC3D3D (ORCPT ); Mon, 29 Mar 2021 23:29:03 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A6816148E; Tue, 30 Mar 2021 03:29:02 +0000 (UTC) Date: Mon, 29 Mar 2021 23:29:01 -0400 From: Steven Rostedt To: Wan Jiabing Cc: Ingo Molnar , linux-kernel@vger.kernel.org, kael_w@yeah.net Subject: Re: [PATCH] linux/trace_events.h: Remove duplicate struct declaration Message-ID: <20210329232901.038ecb4f@gandalf.local.home> In-Reply-To: <20210330015517.2264721-1-wanjiabing@vivo.com> References: <20210330015517.2264721-1-wanjiabing@vivo.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Mar 2021 09:55:17 +0800 Wan Jiabing wrote: > struct trace_array is declared twice. One has been declared > at forward struct declaration. Remove the duplicate. > And sort these forward declarations alphabetically. Um, no that's not how we sort things. > > 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; NAK to the above. If anything, we sort it by length. But the above doesn't need to be touched. > > 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; This part is fine. Thanks, -- Steve > struct trace_subsystem_dir; > > enum {