linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf: remove unneeded include of network header files
@ 2012-08-29 15:55 David Ahern
  2012-09-05 20:39 ` Arnaldo Carvalho de Melo
  2012-09-07  6:05 ` [tip:perf/core] perf tools: " tip-bot for David Ahern
  0 siblings, 2 replies; 8+ messages in thread
From: David Ahern @ 2012-08-29 15:55 UTC (permalink / raw)
  To: acme, linux-kernel
  Cc: David Ahern, Ingo Molnar, Frederic Weisbecker, Peter Zijlstra

perf does not have networking related functionality, and the inclusion of
these headers is one of the causes of compile failures for Android:
  https://lkml.org/lkml/2012/8/23/316
  https://lkml.org/lkml/2012/8/28/293

So, remove them.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
---
 tools/perf/util/util.h |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 00a93a9..67a3713 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -69,11 +69,6 @@
 #include <sys/poll.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <sys/select.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
-#include <arpa/inet.h>
-#include <netdb.h>
 #include <inttypes.h>
 #include "../../../include/linux/magic.h"
 #include "types.h"
-- 
1.7.10.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] perf: remove unneeded include of network header files
@ 2012-09-05 21:53 David Ahern
  2012-09-05 22:40 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 8+ messages in thread
From: David Ahern @ 2012-09-05 21:53 UTC (permalink / raw)
  To: acme, linux-kernel
  Cc: David Ahern, Ingo Molnar, Frederic Weisbecker, Peter Zijlstra

perf does not have networking related functionality, and the inclusion of
these headers is one of the causes of compile failures for Android:
  https://lkml.org/lkml/2012/8/23/316
  https://lkml.org/lkml/2012/8/28/293

So, remove them.

v2:
- netdb.h is required by trace-event-perl.c, so leave it in

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
---
 tools/perf/util/util.h |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 00a93a9..b89a88c 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -69,10 +69,6 @@
 #include <sys/poll.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <sys/select.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
-#include <arpa/inet.h>
 #include <netdb.h>
 #include <inttypes.h>
 #include "../../../include/linux/magic.h"
-- 
1.7.10.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-09-07  6:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-29 15:55 [PATCH] perf: remove unneeded include of network header files David Ahern
2012-09-05 20:39 ` Arnaldo Carvalho de Melo
2012-09-05 21:18   ` David Ahern
2012-09-05 22:37     ` Arnaldo Carvalho de Melo
2012-09-05 23:06       ` David Ahern
2012-09-07  6:05 ` [tip:perf/core] perf tools: " tip-bot for David Ahern
2012-09-05 21:53 [PATCH] perf: " David Ahern
2012-09-05 22:40 ` Arnaldo Carvalho de Melo

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).