From: Yordan Karadzhov <ykaradzhov@vmware.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org,
Yordan Karadzhov <ykaradzhov@vmware.com>
Subject: [PATCH 6/8] kernel-shark: Fix the compile warnings about _GNU_SOURCE being redefined
Date: Wed, 13 Feb 2019 18:12:14 +0200 [thread overview]
Message-ID: <20190213161216.14438-7-ykaradzhov@vmware.com> (raw)
In-Reply-To: <20190213161216.14438-1-ykaradzhov@vmware.com>
Fixes wornings from:
kernel-shark/src/libkshark-configio.c
and
kernel-shark/src/libkshark-plugin.c
Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
kernel-shark/src/libkshark-configio.c | 4 ++++
kernel-shark/src/libkshark-plugin.c | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/kernel-shark/src/libkshark-configio.c b/kernel-shark/src/libkshark-configio.c
index d7b8a69..ab88864 100644
--- a/kernel-shark/src/libkshark-configio.c
+++ b/kernel-shark/src/libkshark-configio.c
@@ -10,8 +10,12 @@
*/
// C
+#ifndef _GNU_SOURCE
/** Use GNU C Library. */
#define _GNU_SOURCE
+
+#endif
+
#include <stdio.h>
#include <sys/stat.h>
diff --git a/kernel-shark/src/libkshark-plugin.c b/kernel-shark/src/libkshark-plugin.c
index 10e4647..4b21392 100644
--- a/kernel-shark/src/libkshark-plugin.c
+++ b/kernel-shark/src/libkshark-plugin.c
@@ -10,7 +10,12 @@
*/
// C
+#ifndef _GNU_SOURCE
+/** Use GNU C Library. */
#define _GNU_SOURCE
+
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--
2.17.1
next prev parent reply other threads:[~2019-02-13 16:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 16:12 [PATCH 0/8] Various modifications toward KS 1.0 Yordan Karadzhov
2019-02-13 16:12 ` [PATCH 1/8] kernel-shark: Add more sanity checks for model misbehavior detection Yordan Karadzhov
2019-02-13 16:12 ` [PATCH 2/8] kernel-shark: Do not copy the Upper Overflow bin when shifting forward Yordan Karadzhov
2019-02-13 16:12 ` [PATCH 3/8] kernel-shark: Check bin 0 for sched_switch event when plotting task graphs Yordan Karadzhov
2019-02-13 16:12 ` [PATCH 4/8] kernel-shark: Don't use Data collection when checking if the bin is empty Yordan Karadzhov
2019-02-13 16:12 ` [PATCH 5/8] kernel-shark: Make the time labels of the marker more readable Yordan Karadzhov
2019-02-13 16:12 ` Yordan Karadzhov [this message]
2019-02-13 16:12 ` [PATCH 7/8] trace-cmd: Fix the printout of the KernelShark executable path Yordan Karadzhov
2019-02-13 16:12 ` [PATCH 8/8] kernel-shark: Version 1.0.0 Yordan Karadzhov
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=20190213161216.14438-7-ykaradzhov@vmware.com \
--to=ykaradzhov@vmware.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.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).