From 384b0a33fe37e6e3c616f9f304908eaaced12f79 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 12 Aug 2019 09:00:54 +0200 Subject: [PATCH] clean bare metal support traces Bare metal support has been gone for quite some time but we still had some checks on system includes. Signed-off-by: David Marchand Acked-by: Thomas Monjalon --- app/test-pmd/cmdline.c | 6 +----- app/test/commands.c | 5 ----- app/test/test_cmdline_ipaddr.c | 7 +------ examples/cmdline/commands.c | 8 ++------ lib/librte_cmdline/cmdline_parse_ipaddr.c | 6 +----- 5 files changed, 5 insertions(+), 27 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index ded56bf36f..1bd977f91d 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -11,13 +11,9 @@ #include #include #include -#ifndef __linux__ -#ifndef __FreeBSD__ -#include -#else +#ifdef __FreeBSD__ #include #endif -#endif #include #include diff --git a/app/test/commands.c b/app/test/commands.c index 8d5a03a954..3bf767bf7f 100644 --- a/app/test/commands.c +++ b/app/test/commands.c @@ -10,11 +10,6 @@ #include #include #include -#ifndef __linux__ -#ifndef __FreeBSD__ -#include -#endif -#endif #include #include #include diff --git a/app/test/test_cmdline_ipaddr.c b/app/test/test_cmdline_ipaddr.c index 8ee7f62886..2d11ce936c 100644 --- a/app/test/test_cmdline_ipaddr.c +++ b/app/test/test_cmdline_ipaddr.c @@ -6,14 +6,9 @@ #include #include #include - -#ifndef __linux__ -#ifndef __FreeBSD__ -#include -#else +#ifdef __FreeBSD__ #include #endif -#endif #include diff --git a/examples/cmdline/commands.c b/examples/cmdline/commands.c index e96739f346..1249ee7a8a 100644 --- a/examples/cmdline/commands.c +++ b/examples/cmdline/commands.c @@ -12,12 +12,8 @@ #include #include #include -#ifndef __linux__ - #ifdef __FreeBSD__ - #include - #else - #include - #endif +#ifdef __FreeBSD__ +#include #endif #include diff --git a/lib/librte_cmdline/cmdline_parse_ipaddr.c b/lib/librte_cmdline/cmdline_parse_ipaddr.c index 6647f569fe..848c1eb07d 100644 --- a/lib/librte_cmdline/cmdline_parse_ipaddr.c +++ b/lib/librte_cmdline/cmdline_parse_ipaddr.c @@ -13,13 +13,9 @@ #include #include #include -#ifndef __linux__ -#ifndef __FreeBSD__ -#include -#else +#ifdef __FreeBSD__ #include #endif -#endif #include -- 2.20.1