diff mbox

[2/2] linux-generic: clean unnecessary includes

Message ID 1414779930-17602-2-git-send-email-mike.holmes@linaro.org
State Rejected
Headers show

Commit Message

Mike Holmes Oct. 31, 2014, 6:25 p.m. UTC
With the system headers cleaned up linux-generic no longer needs so many
system includes

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/odp_buffer.c        | 1 -
 platform/linux-generic/odp_buffer_pool.c   | 3 ---
 platform/linux-generic/odp_coremask.c      | 1 -
 platform/linux-generic/odp_linux.c         | 2 --
 platform/linux-generic/odp_packet.c        | 1 -
 platform/linux-generic/odp_packet_socket.c | 2 --
 platform/linux-generic/odp_ring.c          | 1 -
 platform/linux-generic/odp_shared_memory.c | 1 -
 platform/linux-generic/odp_system_info.c   | 1 -
 platform/linux-generic/odp_thread.c        | 2 --
 platform/linux-generic/odp_time.c          | 1 -
 11 files changed, 16 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_buffer.c b/platform/linux-generic/odp_buffer.c
index e54e0e7..a46543d 100644
--- a/platform/linux-generic/odp_buffer.c
+++ b/platform/linux-generic/odp_buffer.c
@@ -9,7 +9,6 @@ 
 #include <odp_buffer_pool_internal.h>
 
 #include <string.h>
-#include <stdio.h>
 
 
 void *odp_buffer_addr(odp_buffer_t buf)
diff --git a/platform/linux-generic/odp_buffer_pool.c b/platform/linux-generic/odp_buffer_pool.c
index a48d7d6..f25aa67 100644
--- a/platform/linux-generic/odp_buffer_pool.c
+++ b/platform/linux-generic/odp_buffer_pool.c
@@ -16,10 +16,7 @@ 
 #include <odp_config.h>
 #include <odp_hints.h>
 #include <odp_debug.h>
-
 #include <string.h>
-#include <stdlib.h>
-
 
 #ifdef POOL_USE_TICKETLOCK
 #include <odp_ticketlock.h>
diff --git a/platform/linux-generic/odp_coremask.c b/platform/linux-generic/odp_coremask.c
index c7438cc..d378aad 100644
--- a/platform/linux-generic/odp_coremask.c
+++ b/platform/linux-generic/odp_coremask.c
@@ -7,7 +7,6 @@ 
 #include <odp_coremask.h>
 #include <odp_debug.h>
 
-#include <stdlib.h>
 #include <string.h>
 
 #define MAX_CORE_NUM	64
diff --git a/platform/linux-generic/odp_linux.c b/platform/linux-generic/odp_linux.c
index 11f76c9..356d628 100644
--- a/platform/linux-generic/odp_linux.c
+++ b/platform/linux-generic/odp_linux.c
@@ -12,9 +12,7 @@ 
 #include <sys/types.h>
 #include <sys/wait.h>
 
-#include <stdlib.h>
 #include <string.h>
-#include <stdio.h>
 #include <assert.h>
 
 
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index 82ea879..6bac23e 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -13,7 +13,6 @@ 
 #include <odph_ip.h>
 
 #include <string.h>
-#include <stdio.h>
 
 static inline uint8_t parse_ipv4(odp_packet_hdr_t *pkt_hdr,
 				 odph_ipv4hdr_t *ipv4, size_t *offset_out);
diff --git a/platform/linux-generic/odp_packet_socket.c b/platform/linux-generic/odp_packet_socket.c
index 0492d1e..18f6e9d 100644
--- a/platform/linux-generic/odp_packet_socket.c
+++ b/platform/linux-generic/odp_packet_socket.c
@@ -10,8 +10,6 @@ 
 #endif
 
 #include <sys/socket.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
diff --git a/platform/linux-generic/odp_ring.c b/platform/linux-generic/odp_ring.c
index 632aa66..8466d90 100644
--- a/platform/linux-generic/odp_ring.c
+++ b/platform/linux-generic/odp_ring.c
@@ -76,7 +76,6 @@ 
 #include <odp_align.h>
 #include <sys/mman.h>
 #include <fcntl.h>
-#include <stdio.h>
 #include <string.h>
 #include <odp_debug.h>
 #include <odp_rwlock.h>
diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c
index 60a868b..c770a80 100644
--- a/platform/linux-generic/odp_shared_memory.c
+++ b/platform/linux-generic/odp_shared_memory.c
@@ -17,7 +17,6 @@ 
 #include <asm/mman.h>
 #include <fcntl.h>
 
-#include <stdio.h>
 #include <string.h>
 
 
diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c
index 10665bb..90deb80 100644
--- a/platform/linux-generic/odp_system_info.c
+++ b/platform/linux-generic/odp_system_info.c
@@ -9,7 +9,6 @@ 
 #include <odp_debug.h>
 #include <odp_align.h>
 #include <string.h>
-#include <stdio.h>
 
 /* sysconf */
 #include <unistd.h>
diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c
index b869b27..8acbfe2 100644
--- a/platform/linux-generic/odp_thread.c
+++ b/platform/linux-generic/odp_thread.c
@@ -18,8 +18,6 @@ 
 #include <odp_align.h>
 
 #include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
 
 
 typedef struct {
diff --git a/platform/linux-generic/odp_time.c b/platform/linux-generic/odp_time.c
index faece0e..eac60e3 100644
--- a/platform/linux-generic/odp_time.c
+++ b/platform/linux-generic/odp_time.c
@@ -48,7 +48,6 @@  uint64_t odp_time_get_cycles(void)
 #else
 
 #include <time.h>
-#include <stdlib.h>
 
 uint64_t odp_time_get_cycles(void)
 {