Skip to contentSkip to conversation

tools/perf/util/probe-event.c included string.h twice

PATCH In review Danny Kukawka 2 participants 3 messages Feb 16, 2012 – Feb 22, 2012 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/perf/util/probe-event.c included string.h twice

tools/perf/util/probe-event.c included 'string.h' twice, remove the duplicate.

---
 tools/perf/util/probe-event.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
tools/perf/util/probe-event.c +0 -1
index 29cb654..8ce8356 100644
@@ -34,7 +34,6 @@
 
 #include "util.h"
 #include "event.h"
-#include "string.h"
 #include "strlist.h"
 #include "debug.h"
 #include "cache.h"
Signature · 1 line
1.7.8.3
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Danny Kukawka

tools/perf/util/probe-event.c included 'string.h' twice, remove the duplicate.

Right, since perf-defined string util functions(in util/string.c) are declared in util.h, not string.h.

Quoted 2 lines

Thank you!

Quoted 16 lines
---
 tools/perf/util/probe-event.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
tools/perf/util/probe-event.c +0 -1
index 29cb654..8ce8356 100644
@@ -34,7 +34,6 @@
 
 #include "util.h"
 #include "event.h"
-#include "string.h"
 #include "strlist.h"
 #include "debug.h"
 #include "cache.h"
Signature · 4 lines
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: [email protected]
#2 lore raw

[tip:perf/core] perf tools: Remove duplicated string.h includes

In reply to Danny Kukawka
Commit-ID:  dfd3b1e3e8a580bcbf854d46ae0f22c8333e82d8
Gitweb:     http://git.kernel.org/tip/dfd3b1e3e8a580bcbf854d46ae0f22c8333e82d8
Author:     Danny Kukawka <[email protected]>
AuthorDate: Thu, 16 Feb 2012 14:54:19 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 17 Feb 2012 16:34:09 -0200

perf tools: Remove duplicated string.h includes

tools/perf/util/probe-event.c included 'string.h' twice, remove the duplicate.

---
 tools/perf/util/probe-event.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
tools/perf/util/probe-event.c +0 -1
index c1a513e..8379252 100644
@@ -34,7 +34,6 @@
 
 #include "util.h"
 #include "event.h"
-#include "string.h"
 #include "strlist.h"
 #include "debug.h"
 #include "cache.h"