pci: fix bsd build with gcc
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 4 Aug 2015 14:19:43 +0000 (16:19 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 4 Aug 2015 15:08:06 +0000 (17:08 +0200)
commit1c9d836159d5d0a22c0eca79de8fd041eafc795b
tree58244028034a638624b195370df54aa88ce96a15
parent40cf5f884a2f58163505d341d0092d08672af218
pci: fix bsd build with gcc

GCC 4.8 raises this error:
lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards
'__attribute__((const))' qualifier from pointer target type
   .pi_data = *(u_int32_t *)buf,
               ^

Note: this assignment seems useless because pi_data is filled
with memset later.

Fixes: 632b2d1deeed ("eal: provide functions to access PCI config")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal_pci.c