app/test: make PCI device id struct const
PATCH 1/1 app/test: make PCI device id struct const
Signed-off-by Ferruh Yigit <[email protected]>
--- app/test/test_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
app/test/test_pci.c +2 -2
@@ -66,12 +66,12 @@ static int my_driver_init(struct rte_pci_driver *dr, struct rte_pci_device *dev);/* IXGBE NICS */ -struct rte_pci_id my_driver_id[] = { +const struct rte_pci_id my_driver_id[] = { {RTE_PCI_DEVICE (0x0001 ,0x1234 )}, { .vendor_id =0 ,/* sentinel */ }, }; -struct rte_pci_id my_driver_id2[] = { +const struct rte_pci_id my_driver_id2[] = { {RTE_PCI_DEVICE (0x0001 ,0x4444 )}, {RTE_PCI_DEVICE (0x0002 ,0xabcd )}, { .vendor_id =0 ,/* sentinel */ },
Signature · 1 line
2.9.3
Thomas Monjalon
Applied2017-01-27 09:53, Ferruh Yigit:
Quoted 1 line
Signed-off-by Ferruh Yigit <[email protected]>
Applied, thanks