From patchwork Fri Jan 27 09:53:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 20014 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 37B3712A8; Fri, 27 Jan 2017 10:53:09 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 79FC2FFA for ; Fri, 27 Jan 2017 10:53:07 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 27 Jan 2017 01:53:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.33,294,1477983600"; d="scan'208"; a="1099619510" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by fmsmga001.fm.intel.com with ESMTP; 27 Jan 2017 01:53:05 -0800 From: Ferruh Yigit To: David Marchand Cc: dev@dpdk.org, Ferruh Yigit Date: Fri, 27 Jan 2017 09:53:03 +0000 Message-Id: <20170127095303.9723-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 Subject: [dpdk-dev] [PATCH] app/test: make PCI device id struct const X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Ferruh Yigit --- 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 */ },