[dpdk-stable] [PATCH 09/10] app/test-pipeline: fix global variable multiple definitions
Ferruh Yigit
ferruh.yigit at intel.com
Thu Sep 5 16:53:14 CEST 2019
'app' global variable is defined in multiple .c files, fixed it by
marking one copy as 'extern'
Issue has been detected by '-fno-common' gcc flag.
Fixes: 48f31ca50cc4 ("app/pipeline: packet framework benchmark")
Cc: stable at dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
app/test-pipeline/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pipeline/config.c b/app/test-pipeline/config.c
index 28ac9fcc0..42c6ed9b2 100644
--- a/app/test-pipeline/config.c
+++ b/app/test-pipeline/config.c
@@ -42,7 +42,7 @@
#include "main.h"
-struct app_params app;
+extern struct app_params app;
static const char usage[] = "\n";
--
2.21.0
More information about the stable
mailing list