Skip to content

Commit d068bfa

Browse files
jacob-kellerSomasundaram Krishnasamy
authored andcommitted
fm10k: add missing field initializers to TLV attributes)
Add the missing field initializers for a couple of the TLV attribute macros. This resolves the last few -Wmissing-field-initializers warnings for the fm10k Linux driver. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> (cherry picked from commit 1df96ca) Orabug: 31268827 Signed-off-by: Jack Vogel <[email protected]> Reviewed-by: John Donnelly <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent eb19b55 commit d068bfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/intel/fm10k/fm10k_tlv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
/* Copyright(c) 2013 - 2018 Intel Corporation. */
2+
/* Copyright(c) 2013 - 2019 Intel Corporation. */
33

44
#ifndef _FM10K_TLV_H_
55
#define _FM10K_TLV_H_
@@ -76,8 +76,8 @@ struct fm10k_tlv_attr {
7676
#define FM10K_TLV_ATTR_S32(id) { id, FM10K_TLV_SIGNED, 4 }
7777
#define FM10K_TLV_ATTR_S64(id) { id, FM10K_TLV_SIGNED, 8 }
7878
#define FM10K_TLV_ATTR_LE_STRUCT(id, len) { id, FM10K_TLV_LE_STRUCT, len }
79-
#define FM10K_TLV_ATTR_NESTED(id) { id, FM10K_TLV_NESTED }
80-
#define FM10K_TLV_ATTR_LAST { FM10K_TLV_ERROR }
79+
#define FM10K_TLV_ATTR_NESTED(id) { id, FM10K_TLV_NESTED, 0 }
80+
#define FM10K_TLV_ATTR_LAST { FM10K_TLV_ERROR, 0, 0 }
8181

8282
struct fm10k_msg_data {
8383
unsigned int id;

0 commit comments

Comments
 (0)