virtio: fix build with debug enabled
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Mar 2015 15:04:59 +0000 (16:04 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Mar 2015 10:18:53 +0000 (11:18 +0100)
commit80edfef4a83664ed0c96b13a8c1917a2575d768d
treed723a3f380ae5983600e118a7ea1a6e8e3a50d16
parent459132bc2c4096cdcc23b0dd7a778a51a0268570
virtio: fix build with debug enabled

With CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=y:
error: ‘devname’ undeclared (first use in this function)

Fixes: da978dfdc43b ("virtio: use port IO to get PCI resource")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
lib/librte_pmd_virtio/virtio_ethdev.c