Blame SOURCES/0001-eal-fix-build-with-glibc-2.16.patch

c7ffa4
From 8ddd6a90ea3cbd3724191984039c71de8b58d41b Mon Sep 17 00:00:00 2001
c7ffa4
From: Thomas Monjalon <thomas@monjalon.net>
c7ffa4
Date: Fri, 27 Apr 2018 02:54:00 +0200
c7ffa4
Subject: [PATCH 1/2] eal: fix build with glibc < 2.16
c7ffa4
c7ffa4
The fake getauxval function does not use its parameter.
c7ffa4
So the compiler raised this error:
c7ffa4
	lib/librte_eal/common/eal_common_cpuflags.c:25:25: error:
c7ffa4
	unused parameter 'type'
c7ffa4
c7ffa4
Fixes: 2ed9bf330709 ("eal: abstract away the auxiliary vector")
c7ffa4
c7ffa4
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
c7ffa4
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
c7ffa4
---
c7ffa4
 lib/librte_eal/common/eal_common_cpuflags.c | 2 +-
c7ffa4
 1 file changed, 1 insertion(+), 1 deletion(-)
c7ffa4
c7ffa4
diff --git a/lib/librte_eal/common/eal_common_cpuflags.c b/lib/librte_eal/common/eal_common_cpuflags.c
c7ffa4
index a09667563..6a9dbaeb1 100644
c7ffa4
--- a/lib/librte_eal/common/eal_common_cpuflags.c
c7ffa4
+++ b/lib/librte_eal/common/eal_common_cpuflags.c
c7ffa4
@@ -22,7 +22,7 @@
c7ffa4
 
c7ffa4
 #ifndef HAS_AUXV
c7ffa4
 static unsigned long
c7ffa4
-getauxval(unsigned long type)
c7ffa4
+getauxval(unsigned long type __rte_unused)
c7ffa4
 {
c7ffa4
 	errno = ENOTSUP;
c7ffa4
 	return 0;
c7ffa4
-- 
c7ffa4
2.17.0
c7ffa4