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

Jerin Jacob jerin.jacob at caviumnetworks.com
Tue Feb 6 18:14:55 CET 2018


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 at dpdk.org

Signed-off-by: Jerin Jacob <jerin.jacob at 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(-)

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>
-- 
2.16.1



More information about the dev mailing list