Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10bc478a authored by Greg Rose's avatar Greg Rose Committed by Jeff Kirsher
Browse files

i40e/i40evf: Change type to u32 to avoid sparse error



tx_lpi_status and rx_lpi_status are declared as bool but then used in sizeof
operations in the CORE driver code.  Make them u32 to make sparse be quiet.

Change-ID: Iad6daeb1c7149e61ece242acd18c64b320c246a3
Signed-off-by: default avatarGreg Rose <gregory.v.rose@intel.com>
Tested-by: default avatarJim Young <jamesx.m.young@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent aee8087f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1016,8 +1016,8 @@ struct i40e_hw_port_stats {
	u64 mac_short_packet_dropped;	/* mspdc */
	u64 checksum_error;		/* xec */
	/* EEE LPI */
	bool tx_lpi_status;
	bool rx_lpi_status;
	u32 tx_lpi_status;
	u32 rx_lpi_status;
	u64 tx_lpi_count;		/* etlpic */
	u64 rx_lpi_count;		/* erlpic */
};
+2 −2
Original line number Diff line number Diff line
@@ -1016,8 +1016,8 @@ struct i40e_hw_port_stats {
	u64 mac_short_packet_dropped;	/* mspdc */
	u64 checksum_error;		/* xec */
	/* EEE LPI */
	bool tx_lpi_status;
	bool rx_lpi_status;
	u32 tx_lpi_status;
	u32 rx_lpi_status;
	u64 tx_lpi_count;		/* etlpic */
	u64 rx_lpi_count;		/* erlpic */
};