diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2013-01-22 22:21:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-23 13:58:29 -0500 |
commit | 86564c3f0fe7ff3ffe452fcc54a774eeadc1cf45 (patch) | |
tree | 7156520a0da876f430695b235a7c1e2b54d998d5 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h | |
parent | 80bfe5cc1b8c320247a21ff40d8c139c5f3bbcaf (diff) |
bnx2x: Remove many sparse warnings
Remove most of the sparse warnings in the bnx2x compilation
(i.e., thus resulting when compiling with `C=2 CF=-D__CHECK_ENDIAN__').
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h index 76e30c9a2955..037860ecc343 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h | |||
@@ -3378,6 +3378,10 @@ struct regpair { | |||
3378 | __le32 hi; | 3378 | __le32 hi; |
3379 | }; | 3379 | }; |
3380 | 3380 | ||
3381 | struct regpair_native { | ||
3382 | u32 lo; | ||
3383 | u32 hi; | ||
3384 | }; | ||
3381 | 3385 | ||
3382 | /* | 3386 | /* |
3383 | * Classify rule opcodes in E2/E3 | 3387 | * Classify rule opcodes in E2/E3 |
@@ -4404,13 +4408,13 @@ struct tstorm_eth_function_common_config { | |||
4404 | * MAC filtering configuration parameters per port in Tstorm | 4408 | * MAC filtering configuration parameters per port in Tstorm |
4405 | */ | 4409 | */ |
4406 | struct tstorm_eth_mac_filter_config { | 4410 | struct tstorm_eth_mac_filter_config { |
4407 | __le32 ucast_drop_all; | 4411 | u32 ucast_drop_all; |
4408 | __le32 ucast_accept_all; | 4412 | u32 ucast_accept_all; |
4409 | __le32 mcast_drop_all; | 4413 | u32 mcast_drop_all; |
4410 | __le32 mcast_accept_all; | 4414 | u32 mcast_accept_all; |
4411 | __le32 bcast_accept_all; | 4415 | u32 bcast_accept_all; |
4412 | __le32 vlan_filter[2]; | 4416 | u32 vlan_filter[2]; |
4413 | __le32 unmatched_unicast; | 4417 | u32 unmatched_unicast; |
4414 | }; | 4418 | }; |
4415 | 4419 | ||
4416 | 4420 | ||
@@ -4902,7 +4906,7 @@ union event_data { | |||
4902 | * per PF event ring data | 4906 | * per PF event ring data |
4903 | */ | 4907 | */ |
4904 | struct event_ring_data { | 4908 | struct event_ring_data { |
4905 | struct regpair base_addr; | 4909 | struct regpair_native base_addr; |
4906 | #if defined(__BIG_ENDIAN) | 4910 | #if defined(__BIG_ENDIAN) |
4907 | u8 index_id; | 4911 | u8 index_id; |
4908 | u8 sb_id; | 4912 | u8 sb_id; |
@@ -5135,7 +5139,7 @@ struct pci_entity { | |||
5135 | * The fast-path status block meta-data, common to all chips | 5139 | * The fast-path status block meta-data, common to all chips |
5136 | */ | 5140 | */ |
5137 | struct hc_sb_data { | 5141 | struct hc_sb_data { |
5138 | struct regpair host_sb_addr; | 5142 | struct regpair_native host_sb_addr; |
5139 | struct hc_status_block_sm state_machine[HC_SB_MAX_SM]; | 5143 | struct hc_status_block_sm state_machine[HC_SB_MAX_SM]; |
5140 | struct pci_entity p_func; | 5144 | struct pci_entity p_func; |
5141 | #if defined(__BIG_ENDIAN) | 5145 | #if defined(__BIG_ENDIAN) |
@@ -5149,7 +5153,7 @@ struct hc_sb_data { | |||
5149 | u8 state; | 5153 | u8 state; |
5150 | u8 rsrv0; | 5154 | u8 rsrv0; |
5151 | #endif | 5155 | #endif |
5152 | struct regpair rsrv1[2]; | 5156 | struct regpair_native rsrv1[2]; |
5153 | }; | 5157 | }; |
5154 | 5158 | ||
5155 | 5159 | ||
@@ -5167,7 +5171,7 @@ enum hc_segment { | |||
5167 | * The fast-path status block meta-data | 5171 | * The fast-path status block meta-data |
5168 | */ | 5172 | */ |
5169 | struct hc_sp_status_block_data { | 5173 | struct hc_sp_status_block_data { |
5170 | struct regpair host_sb_addr; | 5174 | struct regpair_native host_sb_addr; |
5171 | #if defined(__BIG_ENDIAN) | 5175 | #if defined(__BIG_ENDIAN) |
5172 | u8 rsrv1; | 5176 | u8 rsrv1; |
5173 | u8 state; | 5177 | u8 state; |