pci: fix glibc 2.25 warning regarding major/minor definitions
PATCH v2 1/1 pci: fix glibc 2.25 warning regarding major/minor definitions
fix below warning:
error: In the GNU C Library, "makedev" is defined
by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "makedev", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including <sys/types.h>. [-Werror]
dev = makedev(major, minor);
^~~~~~~~~~~~~~~~~--- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 1 + 1 file changed, 1 insertion(+)
lib/librte_eal/linuxapp/eal/eal_pci_uio.c +1 -0
@@ -39,6 +39,7 @@#include <sys/stat.h> #include <sys/mman.h> #include <linux/pci_regs.h> +#include <sys/sysmacros.h> #if defined(RTE_ARCH_X86 )#include <sys/io.h>
Signature · 1 line
2.12.2
2017-04-04 14:36, Nirmoy Das:
Quoted 11 lines
fix below warning:
error: In the GNU C Library, "makedev" is defined
by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "makedev", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including <sys/types.h>. [-Werror]dev = makedev(major, minor); ^~~~~~~~~~~~~~~~~Signed-off-by Nirmoy Das <[email protected]>
Just applied the same patch from Jerin:
http://dpdk.org/patch/23136
Thank you anyway
PS: please use --in-reply-to when sending a v2