examples/vhost_blk: fix build with gcc 10
authorTimothy Redaelli <tredaelli@redhat.com>
Wed, 5 Feb 2020 13:47:03 +0000 (14:47 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 4 Mar 2020 09:24:42 +0000 (10:24 +0100)
commitbe848992298b7a64a161487600a4070e52b9d26d
treebd8b17ee79dee74d6cbc55d104ed62b924a8bc21
parent20c1854f079e0a09f9c0383ccd896aafe6f41b0a
examples/vhost_blk: 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: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
Cc: stable@dpdk.org
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
examples/vhost_blk/vhost_blk.c
examples/vhost_blk/vhost_blk.h