Thomas Monjalon 96d3d532f9 examples/vm_power: fix build with -fno-common
The variables of the same name are merged together
if compiled with -fcommon. It used to be the default.
This default behaviour allows to declare a variable in a header file and
share the variable in every .o binaries thanks to merge at link-time.

If compiling with -fno-common (default in GCC 10), the variable must be
shared as extern to avoid multiple re-definitions.

Fixes: dff22404aaad ("examples/vm_power_mgr: add VCPU to PCPU mapping")
Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
2020-05-21 15:41:48 +02:00
..
2020-04-16 18:30:58 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-16 18:16:46 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-21 13:57:06 +02:00
2020-04-23 15:40:06 +02:00