eal: fix C++ build
authorChristoph Gysin <christoph.gysin@gmail.com>
Tue, 29 Sep 2015 06:53:01 +0000 (09:53 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 22 Oct 2015 15:50:51 +0000 (17:50 +0200)
commit7499ef45c375998a67c65b7eac0d9d4639ac5ac4
tree000671b7a0d516e298a0caa1859307f0660fd031
parentd08d304508a8a8caf255baf622ab65db1fec952c
eal: fix C++ build

'virtual' is a keyword and can't be used if the code is to compile with
C++ compilers.

If rte_devargs.h was included in C++ code, compilation with clang++
failed with an error. g++ did not fail, but only because of a bug
that treats it as an anonymous struct with a decl-specifier which it
ignores.

This simply renames the member to 'virt'.

Reported-by: Ming Zhao <mzhao@luminatewireless.com>
Signed-off-by: Christoph Gysin <christoph.gysin@gmail.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
app/test/test_devargs.c
doc/guides/rel_notes/release_2_2.rst
lib/librte_eal/common/eal_common_dev.c
lib/librte_eal/common/eal_common_devargs.c
lib/librte_eal/common/include/rte_devargs.h