linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: <linux-trace-devel@vger.kernel.org>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Subject: [PATCH 1/3] libtraceevent: Add include of event-parse.h into event-utils.h
Date: Fri, 14 May 2021 16:50:34 -0400	[thread overview]
Message-ID: <20210514205036.1383167-2-rostedt@goodmis.org> (raw)
In-Reply-To: <20210514205036.1383167-1-rostedt@goodmis.org>

From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The event-parse.h references enum tep_loglevel which is defined in
event-utils.h. If a program includes event-utils.h first, it will get a
warning about using that enum in a parameter before it is declared.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 src/event-utils.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/event-utils.h b/src/event-utils.h
index 695905d..da95027 100644
--- a/src/event-utils.h
+++ b/src/event-utils.h
@@ -10,6 +10,8 @@
 #include <stdarg.h>
 #include <stdbool.h>
 
+#include <event-parse.h>
+
 void tep_warning(const char *fmt, ...);
 void tep_info(const char *fmt, ...);
 /* Can be overridden */
-- 
2.29.2


  reply	other threads:[~2021-05-14 20:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14 20:50 [PATCH 0/3] libtraceevent: Add __tep_vprint() for overrides Steven Rostedt
2021-05-14 20:50 ` Steven Rostedt [this message]
2021-05-14 20:50 ` [PATCH 2/3] libtraceevent: Have the header protection be more name space safe Steven Rostedt
2021-05-14 20:50 ` [PATCH 3/3] libtraceevent: Add __tep_vprint() for overrides to use Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210514205036.1383167-2-rostedt@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=linux-trace-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).