* [dpdk-dev] [PATCH] app/test: make PCI device id struct const
@ 2017-01-27 9:53 Ferruh Yigit
2017-01-30 16:07 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Ferruh Yigit @ 2017-01-27 9:53 UTC (permalink / raw)
To: David Marchand; +Cc: dev, Ferruh Yigit
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
app/test/test_pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test/test_pci.c b/app/test/test_pci.c
index cda186d..7985376 100644
--- a/app/test/test_pci.c
+++ b/app/test/test_pci.c
@@ -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 */ },
--
2.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] app/test: make PCI device id struct const
2017-01-27 9:53 [dpdk-dev] [PATCH] app/test: make PCI device id struct const Ferruh Yigit
@ 2017-01-30 16:07 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-01-30 16:07 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev
2017-01-27 09:53, Ferruh Yigit:
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-30 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 9:53 [dpdk-dev] [PATCH] app/test: make PCI device id struct const Ferruh Yigit
2017-01-30 16:07 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).