From patchwork Tue Jan 16 10:54:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 10166451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1CEE260325 for ; Tue, 16 Jan 2018 10:54:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13147281F9 for ; Tue, 16 Jan 2018 10:54:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0764128426; Tue, 16 Jan 2018 10:54:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F0BD281F9 for ; Tue, 16 Jan 2018 10:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:To:From: Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vczLQz+OPP3ZGtuxU0lkUT6IyRCRfUMAuXjJFEq5tjQ=; b=GI+nh00zS3AGwH G8w1vSBMy6JisDd99BMPsw8RCDZoltTcew+XtaNlNgpglKsPBBYTCLxLCgKumiT8qQW0+0I5qCT4f tkQAKxIZ9SoA2McNTF0jLuYvfVurT/S8iAtn29QRll9KUhJyecheQlSW3H4a9a7iG9RBdR4hddOZZ Ij0iage800cnekRUOgM1/9dREmtHPAD6I1VXEZwvjxiuNZOfSNL+o6pil4DJEnGCuwWQrSzxNOV2t WzjuP1xiwXFK0d/xoROIYiYlBZOOXtKK0xsMAetoSDtXKSy8JJzK3ymmjWzXR28jmesfrqBMhZa4L 9GxVqplBdYHlL9MSqyfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ebOt5-0006Vz-7U; Tue, 16 Jan 2018 10:54:39 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebOsx-0006UY-UN for ath10k@lists.infradead.org; Tue, 16 Jan 2018 10:54:37 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 76405605A4; Tue, 16 Jan 2018 10:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516100060; bh=1OUNEKRu31haxZq/1XsqI3sKpnS6hU03N7ZQuxJRUq0=; h=Subject:From:To:Cc:Date:From; b=TPCG4Slr2hAidWvh7uvR9cVPlm/iXFxzqtQ8gq7LY+UZXb/SMrWZWAAgS0TWFFL3M adhMvjIEMvST2qr8TqWGkie5yMnIxQXQAY990bVGos+Dx1/b+l4l9W+YbewT3XlZ/o 1zIQbkq5yp/nkWuAmRaFLi0uyandPbXoi+SUoFcg= Received: from potku.adurom.net (a88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 896C6601D4; Tue, 16 Jan 2018 10:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516100060; bh=1OUNEKRu31haxZq/1XsqI3sKpnS6hU03N7ZQuxJRUq0=; h=Subject:From:To:Cc:Date:From; b=TPCG4Slr2hAidWvh7uvR9cVPlm/iXFxzqtQ8gq7LY+UZXb/SMrWZWAAgS0TWFFL3M adhMvjIEMvST2qr8TqWGkie5yMnIxQXQAY990bVGos+Dx1/b+l4l9W+YbewT3XlZ/o 1zIQbkq5yp/nkWuAmRaFLi0uyandPbXoi+SUoFcg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 896C6601D4 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH] ath10k: fix recently introduced checkpatch warnings From: Kalle Valo To: ath10k@lists.infradead.org Date: Tue, 16 Jan 2018 12:54:17 +0200 Message-ID: <151610005703.17030.17977783056615638055.stgit@potku.adurom.net> User-Agent: StGit/0.17.1-17-ge4e0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180116_025432_081160_03E533E4 X-CRM114-Status: GOOD ( 10.44 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Checkpatch found these issues: drivers/net/wireless/ath/ath10k/ce.h:324: Please use a blank line after function/struct/union/enum declarations drivers/net/wireless/ath/ath10k/core.c:1321: Please don't use multiple blank lines drivers/net/wireless/ath/ath10k/htt.h:1859: Please use a blank line after function/struct/union/enum declarations Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/ce.h | 1 + drivers/net/wireless/ath/ath10k/core.c | 1 - drivers/net/wireless/ath/ath10k/htt.h | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.h b/drivers/net/wireless/ath/ath10k/ce.h index 06ac2eb70bf5..2c3c8f5e90ea 100644 --- a/drivers/net/wireless/ath/ath10k/ce.h +++ b/drivers/net/wireless/ath/ath10k/ce.h @@ -321,6 +321,7 @@ struct ath10k_ce_ops { dma_addr_t buffer, u32 nbytes, u32 transfer_id, u32 flags); }; + static inline u32 ath10k_ce_base_address(struct ath10k *ar, unsigned int ce_id) { return CE0_BASE_ADDRESS + (CE1_BASE_ADDRESS - CE0_BASE_ADDRESS) * ce_id; diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index c60d91328b5f..b0fdc1023619 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -1318,7 +1318,6 @@ static int ath10k_core_fetch_board_data_api_n(struct ath10k *ar, goto out; } - len -= ie_len; data += ie_len; } diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h index 360c71b106d7..8cc2a8b278e4 100644 --- a/drivers/net/wireless/ath/ath10k/htt.h +++ b/drivers/net/wireless/ath/ath10k/htt.h @@ -1856,6 +1856,7 @@ struct ath10k_htt_rx_ops { void* (*htt_get_vaddr_ring)(struct ath10k_htt *htt); void (*htt_reset_paddrs_ring)(struct ath10k_htt *htt, int idx); }; + #define RX_HTT_HDR_STATUS_LEN 64 /* This structure layout is programmed via rx ring setup