test: fix build with gcc 10
GCC 10 defaults to -fno-common, this means a linker error will now be reported if the same global variable is defined in more than one compilation unit. Fixes: 08e0c7581468 ("test/fib: add performance autotests") Cc: stable@dpdk.org Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
This commit is contained in:
parent
983ab2b5d0
commit
53ba646a0a
app/test
@ -35,7 +35,7 @@ struct route_rule {
|
||||
uint8_t depth;
|
||||
};
|
||||
|
||||
struct route_rule large_route_table[MAX_RULE_NUM];
|
||||
static struct route_rule large_route_table[MAX_RULE_NUM];
|
||||
|
||||
static uint32_t num_route_entries;
|
||||
#define NUM_ROUTE_ENTRIES num_route_entries
|
||||
|
@ -34,7 +34,7 @@ struct route_rule {
|
||||
uint8_t depth;
|
||||
};
|
||||
|
||||
struct route_rule large_route_table[MAX_RULE_NUM];
|
||||
static struct route_rule large_route_table[MAX_RULE_NUM];
|
||||
|
||||
static uint32_t num_route_entries;
|
||||
#define NUM_ROUTE_ENTRIES num_route_entries
|
||||
|
Loading…
x
Reference in New Issue
Block a user