diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-04-15 21:28:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:47:00 -0400 |
commit | 3c997e8849c5b982662f2a9b3e8cb64260382faa (patch) | |
tree | 5975ce39db627bec0e26e56ed38201c49fca70f5 /drivers/net/wireless/iwmc3200wifi | |
parent | 1c0fc65e6de4e941ff483df445e721d6edb1f84b (diff) |
iwmc3200wifi: Fix sparse warnings
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/trace.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/tx.c | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index 5090a8a61887..d754c3bc323a 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -430,7 +430,8 @@ static int iwm_ntf_rx_ticket(struct iwm_priv *iwm, u8 *buf, | |||
430 | return PTR_ERR(ticket_node); | 430 | return PTR_ERR(ticket_node); |
431 | 431 | ||
432 | IWM_DBG_RX(iwm, DBG, "TICKET %s(%d)\n", | 432 | IWM_DBG_RX(iwm, DBG, "TICKET %s(%d)\n", |
433 | ticket->action == IWM_RX_TICKET_RELEASE ? | 433 | __le16_to_cpu(ticket->action) == |
434 | IWM_RX_TICKET_RELEASE ? | ||
434 | "RELEASE" : "DROP", | 435 | "RELEASE" : "DROP", |
435 | ticket->id); | 436 | ticket->id); |
436 | spin_lock(&iwm->ticket_lock); | 437 | spin_lock(&iwm->ticket_lock); |
diff --git a/drivers/net/wireless/iwmc3200wifi/trace.h b/drivers/net/wireless/iwmc3200wifi/trace.h index 320e54fbb38c..abb4805fa8df 100644 --- a/drivers/net/wireless/iwmc3200wifi/trace.h +++ b/drivers/net/wireless/iwmc3200wifi/trace.h | |||
@@ -76,7 +76,7 @@ TRACE_EVENT(iwm_tx_wifi_cmd, | |||
76 | IWM_ASSIGN; | 76 | IWM_ASSIGN; |
77 | __entry->opcode = hdr->sw_hdr.cmd.cmd; | 77 | __entry->opcode = hdr->sw_hdr.cmd.cmd; |
78 | __entry->lmac = 0; | 78 | __entry->lmac = 0; |
79 | __entry->seq = hdr->sw_hdr.cmd.seq_num; | 79 | __entry->seq = __le16_to_cpu(hdr->sw_hdr.cmd.seq_num); |
80 | __entry->resp = GET_VAL8(hdr->sw_hdr.cmd.flags, UMAC_DEV_CMD_FLAGS_RESP_REQ); | 80 | __entry->resp = GET_VAL8(hdr->sw_hdr.cmd.flags, UMAC_DEV_CMD_FLAGS_RESP_REQ); |
81 | __entry->color = GET_VAL32(hdr->sw_hdr.meta_data, UMAC_FW_CMD_TX_STA_COLOR); | 81 | __entry->color = GET_VAL32(hdr->sw_hdr.meta_data, UMAC_FW_CMD_TX_STA_COLOR); |
82 | __entry->eot = GET_VAL32(hdr->hw_hdr.cmd, UMAC_HDI_OUT_CMD_EOT); | 82 | __entry->eot = GET_VAL32(hdr->hw_hdr.cmd, UMAC_HDI_OUT_CMD_EOT); |
@@ -123,7 +123,7 @@ TRACE_EVENT(iwm_tx_packets, | |||
123 | __entry->ra_tid = GET_VAL32(hdr->hw_hdr.meta_data, UMAC_HDI_OUT_RATID); | 123 | __entry->ra_tid = GET_VAL32(hdr->hw_hdr.meta_data, UMAC_HDI_OUT_RATID); |
124 | __entry->credit_group = GET_VAL32(hdr->hw_hdr.meta_data, UMAC_HDI_OUT_CREDIT_GRP); | 124 | __entry->credit_group = GET_VAL32(hdr->hw_hdr.meta_data, UMAC_HDI_OUT_CREDIT_GRP); |
125 | __entry->color = GET_VAL32(hdr->sw_hdr.meta_data, UMAC_FW_CMD_TX_STA_COLOR); | 125 | __entry->color = GET_VAL32(hdr->sw_hdr.meta_data, UMAC_FW_CMD_TX_STA_COLOR); |
126 | __entry->seq = hdr->sw_hdr.cmd.seq_num; | 126 | __entry->seq = __le16_to_cpu(hdr->sw_hdr.cmd.seq_num); |
127 | __entry->npkt = 1; | 127 | __entry->npkt = 1; |
128 | __entry->bytes = len; | 128 | __entry->bytes = len; |
129 | 129 | ||
diff --git a/drivers/net/wireless/iwmc3200wifi/tx.c b/drivers/net/wireless/iwmc3200wifi/tx.c index a20b936ae21f..3cfa7b81fef2 100644 --- a/drivers/net/wireless/iwmc3200wifi/tx.c +++ b/drivers/net/wireless/iwmc3200wifi/tx.c | |||
@@ -301,8 +301,8 @@ void iwm_tx_credit_init_pools(struct iwm_priv *iwm, | |||
301 | 301 | ||
302 | #define IWM_UDMA_HDR_LEN sizeof(struct iwm_umac_wifi_out_hdr) | 302 | #define IWM_UDMA_HDR_LEN sizeof(struct iwm_umac_wifi_out_hdr) |
303 | 303 | ||
304 | static int iwm_tx_build_packet(struct iwm_priv *iwm, struct sk_buff *skb, | 304 | static __le16 iwm_tx_build_packet(struct iwm_priv *iwm, struct sk_buff *skb, |
305 | int pool_id, u8 *buf) | 305 | int pool_id, u8 *buf) |
306 | { | 306 | { |
307 | struct iwm_umac_wifi_out_hdr *hdr = (struct iwm_umac_wifi_out_hdr *)buf; | 307 | struct iwm_umac_wifi_out_hdr *hdr = (struct iwm_umac_wifi_out_hdr *)buf; |
308 | struct iwm_udma_wifi_cmd udma_cmd; | 308 | struct iwm_udma_wifi_cmd udma_cmd; |