ixgbevf: Resolve missing-field-initializers warnings
authorMark Rustad <mark.d.rustad@intel.com>
Thu, 24 Jul 2014 06:19:29 +0000 (06:19 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 12 Sep 2014 07:16:41 +0000 (00:16 -0700)
Resolve missing-field-initializers warnings by using
designated initialization.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ethtool.c

index d420f124633f046d5b61f6c357656c2a3b13b9f0..cc0e5b7ff041e58752dfa62728bb08eab5d11a5a 100644 (file)
@@ -523,7 +523,7 @@ static const struct ixgbevf_reg_test reg_test_vf[] = {
        { IXGBE_VFTDBAL(0), 2, PATTERN_TEST, 0xFFFFFF80, 0xFFFFFFFF },
        { IXGBE_VFTDBAH(0), 2, PATTERN_TEST, 0xFFFFFFFF, 0xFFFFFFFF },
        { IXGBE_VFTDLEN(0), 2, PATTERN_TEST, 0x000FFF80, 0x000FFF80 },
-       { 0, 0, 0, 0 }
+       { .reg = 0 }
 };
 
 static const u32 register_test_patterns[] = {