From: Kalle Valo Date: Wed, 24 Apr 2013 15:33:18 +0300 Subject: [ath9k-devel] [PATCH 5/5] ath10k: fix some checkpatch warnings in htt_rx.c and ce.c In-Reply-To: <20130424123142.30784.57385.stgit@localhost6.localdomain6> References: <20130424123142.30784.57385.stgit@localhost6.localdomain6> Message-ID: <20130424123318.30784.70603.stgit@localhost6.localdomain6> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/ce.c | 32 +++++++++++++++++------------- drivers/net/wireless/ath/ath10k/htt_rx.c | 27 +++++++++++++++++-------- 2 files changed, 36 insertions(+), 23 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index 969f24d..454025e 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -552,7 +552,8 @@ void ath10k_ce_per_engine_service(struct ath10k *ar, unsigned int ce_id) &buf, &nbytes, &id, &flags) == 0) { spin_unlock_bh(&ar_pci->ce_lock); - ce_state->recv_cb(ce_state, transfer_context, buf, nbytes, id, flags); + ce_state->recv_cb(ce_state, transfer_context, buf, + nbytes, id, flags); spin_lock_bh(&ar_pci->ce_lock); } } @@ -568,7 +569,8 @@ void ath10k_ce_per_engine_service(struct ath10k *ar, unsigned int ce_id) &nbytes, &id) == 0) { spin_unlock_bh(&ar_pci->ce_lock); - ce_state->send_cb(ce_state, transfer_context, buf, nbytes, id); + ce_state->send_cb(ce_state, transfer_context, + buf, nbytes, id); spin_lock_bh(&ar_pci->ce_lock); } } @@ -626,7 +628,8 @@ static void ath10k_ce_per_engine_handler_adjust(struct ce_state *ce_state, ath10k_pci_wake(ar); - if ((!disable_copy_compl_intr) && (ce_state->send_cb || ce_state->recv_cb)) + if ((!disable_copy_compl_intr) && + (ce_state->send_cb || ce_state->recv_cb)) CE_COPY_COMPLETE_INTR_ENABLE(ar, ctrl_addr); else CE_COPY_COMPLETE_INTR_DISABLE(ar, ctrl_addr); @@ -845,7 +848,8 @@ static int ath10k_ce_init_dest_ring(struct ath10k *ar, } ath10k_pci_wake(ar); - CE_DEST_RING_BASE_ADDR_SET(ar, ctrl_addr, dest_ring->base_addr_ce_space); + CE_DEST_RING_BASE_ADDR_SET(ar, ctrl_addr, + dest_ring->base_addr_ce_space); CE_DEST_RING_SZ_SET(ar, ctrl_addr, nentries); CE_DEST_RING_BYTE_SWAP_SET(ar, ctrl_addr, 0); CE_DEST_RING_LOWMARK_SET(ar, ctrl_addr, 0); @@ -943,21 +947,21 @@ void ath10k_ce_deinit(struct ce_state *ce_state) if (ce_state->src_ring) { kfree(ce_state->src_ring->shadow_base_unaligned); pci_free_consistent(ar_pci->pdev, - (ce_state->src_ring->nentries * - sizeof(struct ce_desc) + - CE_DESC_RING_ALIGN), - ce_state->src_ring->base_addr_owner_space, - ce_state->src_ring->base_addr_ce_space); + (ce_state->src_ring->nentries * + sizeof(struct ce_desc) + + CE_DESC_RING_ALIGN), + ce_state->src_ring->base_addr_owner_space, + ce_state->src_ring->base_addr_ce_space); kfree(ce_state->src_ring); } if (ce_state->dest_ring) { pci_free_consistent(ar_pci->pdev, - (ce_state->dest_ring->nentries * - sizeof(struct ce_desc) + - CE_DESC_RING_ALIGN), - ce_state->dest_ring->base_addr_owner_space, - ce_state->dest_ring->base_addr_ce_space); + (ce_state->dest_ring->nentries * + sizeof(struct ce_desc) + + CE_DESC_RING_ALIGN), + ce_state->dest_ring->base_addr_owner_space, + ce_state->dest_ring->base_addr_ce_space); kfree(ce_state->dest_ring); } kfree(ce_state); diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 8c018ab..e88b031 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -126,7 +126,9 @@ static void ath10k_htt_rx_ring_fill_n(struct ath10k_htt *htt, int num) } if (!IS_ALIGNED((unsigned long)skb->data, HTT_RX_DESC_ALIGN)) - skb_pull(skb, PTR_ALIGN(skb->data, HTT_RX_DESC_ALIGN) - skb->data); + skb_pull(skb, + PTR_ALIGN(skb->data, HTT_RX_DESC_ALIGN) - + skb->data); /* Clear rx_desc attention word before posting to Rx ring */ rx_desc = (struct htt_rx_desc *)skb->data; @@ -353,7 +355,8 @@ static int ath10k_htt_rx_amsdu_pop(struct ath10k_htt *htt, DMA_FROM_DEVICE); ath10k_dbg_dump(ATH10K_DBG_HTT_DUMP, NULL, "htt rx: ", - next->data, next->len + skb_tailroom(next)); + next->data, + next->len + skb_tailroom(next)); skb_trim(next, 0); skb_put(next, min(msdu_len, HTT_RX_BUF_SIZE)); @@ -366,11 +369,12 @@ static int ath10k_htt_rx_amsdu_pop(struct ath10k_htt *htt, if (msdu_len > 0) { /* This may suggest FW bug? */ - ath10k_warn("htt rx msdu len not consumed (%d)\n", msdu_len); + ath10k_warn("htt rx msdu len not consumed (%d)\n", + msdu_len); } last_msdu = __le32_to_cpu(rx_desc->msdu_end.info0) & - RX_MSDU_END_INFO0_LAST_MSDU; + RX_MSDU_END_INFO0_LAST_MSDU; if (last_msdu) { msdu->next = NULL; @@ -741,7 +745,8 @@ static bool ath10k_htt_rx_has_fcs_err(struct sk_buff *skb) return false; } -static void ath10k_htt_rx_handler(struct ath10k_htt *htt, struct htt_rx_indication *rx) +static void ath10k_htt_rx_handler(struct ath10k_htt *htt, + struct htt_rx_indication *rx) { struct htt_rx_info info; struct htt_rx_indication_mpdu_range *mpdu_ranges; @@ -962,7 +967,8 @@ void ath10k_htt_t2h_msg_handler(void *context, struct sk_buff *skb) if ((((unsigned long)skb->data) & 0x3) != 0) ath10k_warn("unaligned htt message, expect trouble\n"); - ath10k_dbg(ATH10K_DBG_HTT, "HTT RX, msg_type: 0x%0X\n", resp->hdr.msg_type); + ath10k_dbg(ATH10K_DBG_HTT, "HTT RX, msg_type: 0x%0X\n", + resp->hdr.msg_type); switch (resp->hdr.msg_type) { case HTT_T2H_MSG_TYPE_VERSION_CONF: { htt->target_version_major = resp->ver_resp.major; @@ -1011,7 +1017,8 @@ void ath10k_htt_t2h_msg_handler(void *context, struct sk_buff *skb) } case HTT_T2H_MSG_TYPE_TX_COMPL_IND: { struct htt_tx_done tx_done = {}; - int status = MS(resp->data_tx_completion.flags, HTT_DATA_TX_STATUS); + int status = MS(resp->data_tx_completion.flags, + HTT_DATA_TX_STATUS); int i; switch (status) { @@ -1028,7 +1035,8 @@ void ath10k_htt_t2h_msg_handler(void *context, struct sk_buff *skb) tx_done.discard = true; break; default: - ath10k_warn("unhandled tx completion status %d\n", status); + ath10k_warn("unhandled tx completion status %d\n", + status); tx_done.discard = true; break; } @@ -1037,7 +1045,8 @@ void ath10k_htt_t2h_msg_handler(void *context, struct sk_buff *skb) resp->data_tx_completion.num_msdus); for (i = 0; i < resp->data_tx_completion.num_msdus; i++) { - tx_done.msdu_id = __le16_to_cpu(resp->data_tx_completion.msdus[i]); + tx_done.msdu_id = + __le16_to_cpu(resp->data_tx_completion.msdus[i]); ath10k_txrx_tx_completed(htt, &tx_done); } break;