kni: fix build with kernel < 3.0
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Sep 2016 16:09:58 +0000 (17:09 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Sep 2016 16:14:34 +0000 (18:14 +0200)
commitac11f6e84ab1a7cd859a42bb812c8b460a311641
tree74db6f3091f94065ef0d8858ea843d7ddbb904ec
parente30a0178d290a4e83dc01f9c2170d4859339c9cf
kni: fix build with kernel < 3.0

Compile error:
  CC [M]  .../build/lib/librte_eal/linuxapp/kni/igb_main.o
.../build/lib/librte_eal/linuxapp/kni/igb_main.c:
In function ‘igb_check_swap_media’:
.../build/lib/librte_eal/linuxapp/kni/igb_main.c:1556:7:
error: variable ‘link’ set but not used [-Werror=unused-but-set-variable]
  bool link;
       ^

With Linux kernel >= v3.0 this warning disabled:
Linux: 8417da6f2128 ("kbuild: Fix passing -Wno-* options to gcc 4.4+")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c