[dpdk-dev] bus/fslmc: fix build issue with latest glib-headers

Message ID 20180206171455.16097-1-jerin.jacob@caviumnetworks.com (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Jerin Jacob Feb. 6, 2018, 5:14 p.m. UTC
  Fix the following build error with latest glib-headers(
Part of aarch64-linux-gnu-gcc-7.3.0 toolchain)

In file included from /tmp/drivers/bus/fslmc/mc/fsl_mc_sys.h:30:0,
                 from /tmp/drivers/bus/fslmc/mc/dpmng.c:7:
/usr/aarch64-linux-gnu/usr/include/libio.h:21:2: error:
#warning "<libio.h> is deprecated; use <stdio.h> instead." [-Werror=cpp]

Fixes: 3af733ba8da8 ("bus/fslmc: introduce MC object functions")
Cc: stable@dpdk.org

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---

Since fslmc is part of the default armv8 config now, With out this patch
it breaks all armv8 build with latest toolchain

---
 drivers/bus/fslmc/mc/fsl_mc_sys.h | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Thomas Monjalon Feb. 6, 2018, 5:30 p.m. UTC | #1
06/02/2018 18:14, Jerin Jacob:
> Fix the following build error with latest glib-headers(
> Part of aarch64-linux-gnu-gcc-7.3.0 toolchain)
> 
> In file included from /tmp/drivers/bus/fslmc/mc/fsl_mc_sys.h:30:0,
>                  from /tmp/drivers/bus/fslmc/mc/dpmng.c:7:
> /usr/aarch64-linux-gnu/usr/include/libio.h:21:2: error:
> #warning "<libio.h> is deprecated; use <stdio.h> instead." [-Werror=cpp]
> 
> Fixes: 3af733ba8da8 ("bus/fslmc: introduce MC object functions")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> ---
> 
> Since fslmc is part of the default armv8 config now, With out this patch
> it breaks all armv8 build with latest toolchain

Applied, thanks
  

Patch

diff --git a/drivers/bus/fslmc/mc/fsl_mc_sys.h b/drivers/bus/fslmc/mc/fsl_mc_sys.h
index a48da1071..d0c7b39f8 100644
--- a/drivers/bus/fslmc/mc/fsl_mc_sys.h
+++ b/drivers/bus/fslmc/mc/fsl_mc_sys.h
@@ -27,7 +27,6 @@  struct fsl_mc_io {
 #else /* __linux_driver__ */
 
 #include <stdio.h>
-#include <libio.h>
 #include <stdint.h>
 #include <errno.h>
 #include <sys/uio.h>