From: Pablo de Lara Date: Thu, 23 Jun 2016 14:38:24 +0000 (+0100) Subject: kni: fix build with gcc 6.1 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=949e26c4cfe8aff52be3790aa6bd3fda65137e72;p=dpdk.git kni: fix build with gcc 6.1 Using gcc 6.1, in some cases, kni fails to compile because of unused variables: lib/librte_eal/linuxapp/kni/ixgbe_main.c:82:19: error: ‘ixgbe_copyright’ defined but not used [-Werror=unused-const-variable=] lib/librte_eal/linuxapp/kni/ixgbe_main.c:62:19: error: ‘ixgbe_driver_string’ defined but not used [-Werror=unused-const-variable=] Fixes: 3fc5ca2f6352 ("kni: initial import") Signed-off-by: Pablo de Lara Acked-by: Ferruh Yigit --- diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c index 8c1d2fe32d..92fc9fc710 100644 --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c @@ -59,8 +59,6 @@ #undef CONFIG_DCA_MODULE char ixgbe_driver_name[] = "ixgbe"; -static const char ixgbe_driver_string[] = - "Intel(R) 10 Gigabit PCI Express Network Driver"; #define DRV_HW_PERF #ifndef CONFIG_IXGBE_NAPI @@ -79,8 +77,6 @@ static const char ixgbe_driver_string[] = #define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \ __stringify(BUILD) DRIVERNAPI DRV_HW_PERF FPGA VMDQ_TAG const char ixgbe_driver_version[] = DRV_VERSION; -static const char ixgbe_copyright[] = - "Copyright (c) 1999-2012 Intel Corporation."; /* ixgbe_pci_tbl - PCI Device ID Table *