From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7425C4332F for ; Thu, 31 Mar 2022 17:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229452AbiCaRT1 (ORCPT ); Thu, 31 Mar 2022 13:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiCaRT0 (ORCPT ); Thu, 31 Mar 2022 13:19:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E93DFD14; Thu, 31 Mar 2022 10:17:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 51C96B8218F; Thu, 31 Mar 2022 17:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C98DC34110; Thu, 31 Mar 2022 17:17:34 +0000 (UTC) Date: Thu, 31 Mar 2022 13:17:32 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: Masahiro Yamada , linux-kernel , Beau Belgrave , Masami Hiramatsu , linux-trace-devel , bpf , netdev , Alexei Starovoitov , Linus Torvalds , Michal Marek , ndesaulniers , Linux Kbuild mailing list Subject: Re: [PATCH] tracing: do not export user_events uapi Message-ID: <20220331131732.5e2305ee@gandalf.local.home> In-Reply-To: <602770698.200731.1648742848915.JavaMail.zimbra@efficios.com> References: <20220330201755.29319-1-mathieu.desnoyers@efficios.com> <20220330162152.17b1b660@gandalf.local.home> <20220331081337.07ddf251@gandalf.local.home> <602770698.200731.1648742848915.JavaMail.zimbra@efficios.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: netdev@vger.kernel.org On Thu, 31 Mar 2022 12:07:28 -0400 (EDT) Mathieu Desnoyers wrote: > diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c > index 8b3d241a31c2..823d7b09dcba 100644 > --- a/kernel/trace/trace_events_user.c > +++ b/kernel/trace/trace_events_user.c > @@ -18,7 +18,7 @@ > #include > #include > #include > -#include > +#include > #include "trace.h" > #include "trace_dynevent.h" > > Including will continue to work even when the header is > moved to uapi in the future. Actually, when I thought of this, I was thinking more of: diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c index 846c27bc7aef..0f3aa855cf72 100644 --- a/kernel/trace/trace_events_user.c +++ b/kernel/trace/trace_events_user.c @@ -18,7 +18,11 @@ #include #include #include +#ifdef CONFIG_COMPILE_TEST +#include +#else #include +#endif #include "trace.h" #include "trace_dynevent.h" That way, when we take it out of broken state, it will fail to compile, and remind us to put it back into the uapi directory. -- Steve