[dpdk-dev] [PATCH] nfp: fix non-x86 build

Alejandro Lucero alejandro.lucero at netronome.com
Mon Feb 8 15:27:59 CET 2016


On Sat, Feb 6, 2016 at 9:51 PM, Thomas Monjalon <thomas.monjalon at 6wind.com>
wrote:

> The file sys/io.h was included but it can be unavailable in some
> non-x86 toolchains.
> As others system includes in the file nfp_net.c, it seems useless,
> so the easy fix is to remove them.
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
> ---
>  drivers/net/nfp/nfp_net.c | 11 -----------
>  1 file changed, 11 deletions(-)
>
> diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c
> index bc2089f..283269e 100644
> --- a/drivers/net/nfp/nfp_net.c
> +++ b/drivers/net/nfp/nfp_net.c
> @@ -39,18 +39,7 @@
>   * Netronome vNIC DPDK Poll-Mode Driver: Main entry point
>   */
>
> -#include <stdio.h>
> -#include <stdlib.h>
> -#include <stdint.h>
> -#include <unistd.h>
> -#include <string.h>
> -#include <sys/mman.h>
> -#include <sys/socket.h>
> -#include <sys/io.h>
> -#include <assert.h>
> -#include <time.h>
>  #include <math.h>
> -#include <inttypes.h>
>
>  #include <rte_byteorder.h>
>  #include <rte_common.h>
> --
> 2.7.0
>
>
This is fine for me.

Thanks


More information about the dev mailing list