From patchwork Wed Jun 26 15:18:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11018091 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEBEF14E5 for ; Wed, 26 Jun 2019 15:18:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE39B2843C for ; Wed, 26 Jun 2019 15:18:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2CC12811E; Wed, 26 Jun 2019 15:18:25 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 8916928606 for ; Wed, 26 Jun 2019 15:18:25 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rIZIOqhXYNPLummMRM8QaaAQwRs0XXXL/HMB217TCqk=; b=ScYryxjOHR3tYw QfP+Gg4UD6YvYUdNKm/EQ2bD8t00TJ5pw9vHu4uvNfnMR2wvCEnBj1KLKDp7tiUfZDoCjPeLp+N+w 1/P/Hsh06Xyf+DHZE0hUep/FS9PmC3c+4536DG+JSzBKbPqaHAkNBQthjOr4qn3skF76Kdyd3f3u5 zk6tztEtXyfGOx6Xw4AIQkLxl5UEAKqpgwnw+Z0x2ArpVylqtwi6Jeg46zLne7CrnHTVlgh66HYOx 2oe0kxfm1qqv7wu25i5N6KzD3Za6sY2EwoUP0HRFlx0wnrGY2HVgTnRPQVhmeLyvxVFpBDdh9PGvy RWf+tOzaXJvDEgAVXSUQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gm-0006dl-LR; Wed, 26 Jun 2019 15:18:24 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gk-0006d3-9t for ath11k@lists.infradead.org; Wed, 26 Jun 2019 15:18:23 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DC94E60A50; Wed, 26 Jun 2019 15:18:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562301; bh=8aRu8+O+vLFAm/cbtKgaYebMFxCprIesIxjsp7lkTFc=; h=From:To:Subject:Date:From; b=fHq1qs/sa9cjxBahx+r04diJRjGzPSe4+lo8pGFuT3HL/Hv4ETC+1Iiyy4uB4czbq 1kYH6izvaxW4QQffAwzCy22SLdlggpwLsvrV8Rhd4XbHMPSgXSBX+ohVuZa/z5OMAX 1Q/EdwvPfbzUxwf4eUFCJwJSzXq5QjL9B9gzk9N0= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0A3086085C for ; Wed, 26 Jun 2019 15:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562301; bh=8aRu8+O+vLFAm/cbtKgaYebMFxCprIesIxjsp7lkTFc=; h=From:To:Subject:Date:From; b=fHq1qs/sa9cjxBahx+r04diJRjGzPSe4+lo8pGFuT3HL/Hv4ETC+1Iiyy4uB4czbq 1kYH6izvaxW4QQffAwzCy22SLdlggpwLsvrV8Rhd4XbHMPSgXSBX+ohVuZa/z5OMAX 1Q/EdwvPfbzUxwf4eUFCJwJSzXq5QjL9B9gzk9N0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0A3086085C 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 From: Kalle Valo To: ath11k@lists.infradead.org Subject: [PATCH 1/4] ath11k: Alignment should match open parenthesis Date: Wed, 26 Jun 2019 18:18:12 +0300 Message-Id: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190626_081822_358922_4F47CE68 X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix checkpatch warning: drivers/net/wireless/ath/ath11k/mac.c:5029: Alignment should match open parenthesis Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 8d4ddd9015cb..dd164b5bb51a 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -5026,7 +5026,7 @@ ath11k_mac_update_bss_chan_survey(struct ath11k *ar, } static int ath11k_mac_op_get_survey(struct ieee80211_hw *hw, int idx, - struct survey_info *survey) + struct survey_info *survey) { struct ath11k *ar = hw->priv; struct ieee80211_supported_band *sband; From patchwork Wed Jun 26 15:18:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11018093 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 95A8B13AF for ; Wed, 26 Jun 2019 15:18:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83F5728305 for ; Wed, 26 Jun 2019 15:18:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7878B288D3; Wed, 26 Jun 2019 15:18:27 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 E6E3528305 for ; Wed, 26 Jun 2019 15:18:26 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=QGMiwrQYB5UUPqlaqDRNImHgIcoK56f39FqTWrpl7wg=; b=lFz8YKlcGnTrBtjvuCgqoVvk4Z /shYqWNip3GRMTuCW+AXF3jf8l5noiNmkT3+EtSNmo483BXWAa0KNEVN8JtpFCzh2MD/PHVx0bv68 qpR8b8AjcLjXPTSAej6Le3Bey9HDp8M/+EgfBw+MVZYeRhXnXbcpYTUKZRiyFINi7FKH1z91Kcdt5 oVP+VrJ51N2454s/Znlaq2BDgD1DGF2ZQCQdospV1079sEUHUa1H87JS9SdPAXctKA9C9WF5xbOun vOm09Qn6TAgBQ0ax8rFpmTEWUggRTTagR2+WKx1snj5cjcfoEO/+pfADz7Jsl+viD2wIhPkBd5i2k lfWymc/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hg9go-0006es-1m; Wed, 26 Jun 2019 15:18:26 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gl-0006dP-FH for ath11k@lists.infradead.org; Wed, 26 Jun 2019 15:18:24 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 36C596085C; Wed, 26 Jun 2019 15:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562303; bh=SEp/FeVV1jv4VJ6p8FNYZPBvQ4kcLNJLvgC6nOfPh28=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=enooe7H9PosxYYxUJNIufxwjUx5/dN0wqWARyIEqJIhK7ZS/LKanYccs3tN8wNb5b MVU8CS/9xOj8Eq4CVcu5tc6MqMoM3qvo/3THq0Yo2oCkFQzX6MtmZ7NQ+fpUXSSU6i 4O3uic4TgIoehuJFdYXou5ovWbFNsvj3on/dvIyU= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 19EFB60709; Wed, 26 Jun 2019 15:18:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562302; bh=SEp/FeVV1jv4VJ6p8FNYZPBvQ4kcLNJLvgC6nOfPh28=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U2YgY4ohnLR5G6yTTHxOSMQLcD3IhWAu8WS9j6lkWtjLY9g8lLlogTqRuXsejrfnx L19iJGZLINK9xJ5vWDKZNbLddmKHtm1iQ09Dv54UsQZBjAJcgcv/90YxUa8xu0qHby q0lMIRm9WJU0N5Z6zX8aEKdVi4gA0xpS3xv+ySaI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 19EFB60709 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 From: Kalle Valo To: ath11k@lists.infradead.org Subject: [PATCH 2/4] ath11k: Remove prototype interface Date: Wed, 26 Jun 2019 18:18:13 +0300 Message-Id: <1561562295-17402-2-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> References: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190626_081823_542681_174E5E66 X-CRM114-Status: UNSURE ( 7.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Venkateswara Naralasetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Venkateswara Naralasetty Remove prototype interfaces which we don't support any of these prototype interfaces in upstream. Signed-off-by: Venkateswara Naralasetty Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/wmi.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index e6566f7e6b66..7d933eafd3cd 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -1936,7 +1936,6 @@ enum wmi_tlv_service { WMI_TLV_SERVICE_PER_VDEV_CHAINMASK_CONFIG_SUPPORT = 173, WMI_TLV_SERVICE_TX_DATA_MGMT_ACK_RSSI = 174, WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT = 175, - WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT__prototype = WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT, WMI_TLV_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN = 176, WMI_MAX_EXT_SERVICE From patchwork Wed Jun 26 15:18:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11018095 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 834B113AF for ; Wed, 26 Jun 2019 15:18:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 735CF2859F for ; Wed, 26 Jun 2019 15:18:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67DA1285FF; Wed, 26 Jun 2019 15:18:28 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 273662864B for ; Wed, 26 Jun 2019 15:18:28 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yzUPDCKL6k6oACbxN+k85DfgHb3nAFBalE6DKFG3LMs=; b=ZCTCsXhmB2pUvF 7cdbQ7EaElAz+sETKJqGTLltHcZA7Fby4xuwKY+0icKtJ7/+7Vh0QLDnx1fONp/rm6/1/7Vlduer/ ruaT/WtsBv9PVPvfZy4OKQOJ4zr/5ZWjS3NlNfEDr6ijqGR8DallzWE5Al87+DuBM0ZdZZj+1/+JE PqUKf/KcbfDE4QpxFKm9ZNAAdkqt1fW/g91BeG5W18Ea+cRqCsTjdQT8QSQ1pu28iD9l6kK1SXnd5 NDnd1M9NqOiaF4K33694q8I+BY7CBMj5j3ixWY4cMRRyfPNIE03NcadjWb0IlzLchQeIZH5WmN3DO uITO9dRX+wxI4bmNBkAA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gp-0006fq-Ck; Wed, 26 Jun 2019 15:18:27 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gm-0006dh-Fb for ath11k@lists.infradead.org; Wed, 26 Jun 2019 15:18:25 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3F6AD60AE0; Wed, 26 Jun 2019 15:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562304; bh=+QK7D+Q+ynRPvAY4U1snbWgEeVNhUS7zvHWVejeS6To=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bIq7tTCqB3n1/5FPGyqZ42NriMzbzWAC0fD5g7Octn4gliRunWqeevy0VHMTGdk8o yL35AY20V0oV0mu3gVnt2T0mx+hSWnGMbLRd03/pogHW8iykr7RTnuC8cssCToZ6Wr LM/E0rr9lhNj3WRlF5tFVsN86JpYCjyafXMCN1bA= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 56A1060709 for ; Wed, 26 Jun 2019 15:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562303; bh=+QK7D+Q+ynRPvAY4U1snbWgEeVNhUS7zvHWVejeS6To=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UWKK59yztBAdEvwivrwli+h5jYEJTJtreqF5EFkDHaLM+t3KGHo5wfbMfqL/8KgQz Mu5gVPlh1Ru4VL6HxRIhesNrjmhYh25DQPEJWIQddom41fvyQYY0Rdasvc3xzgD/Gf jg+xaGHl90YhUMcVqzRN8QZh8i8yr/vuFIOTGi/0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 56A1060709 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 From: Kalle Valo To: ath11k@lists.infradead.org Subject: [PATCH 3/4] ath11k: line over 90 characters Date: Wed, 26 Jun 2019 18:18:14 +0300 Message-Id: <1561562295-17402-3-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> References: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190626_081824_537106_09C5A7EA X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix checkpatch warning: drivers/net/wireless/ath/ath11k/dp_rx.c:2283: line over 90 characters Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/dp_rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index 14a20f39ed10..9a1c24705a32 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -2280,7 +2280,9 @@ int ath11k_dp_process_rx(struct ath11k_base *ab, int mac_id, if (ret == -EIO) { ath11k_err(ab, "rx ring got corrupted %d\n", ret); __skb_queue_purge(&msdu_list); - /* Should stop processing any more rx in future from this ring? */ + /* Should stop processing any more rx in + * future from this ring? + */ goto rcu_unlock; } From patchwork Wed Jun 26 15:18:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11018097 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2409B13AF for ; Wed, 26 Jun 2019 15:18:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F82E28673 for ; Wed, 26 Jun 2019 15:18:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03FBF288B3; Wed, 26 Jun 2019 15:18:30 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 AAFF028673 for ; Wed, 26 Jun 2019 15:18:29 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=URrNbveNTH2CnaCYep2r/2jcMjoVpnwbzci3C+eO2kc=; b=bTjEXr0bAbG6i3 Nj7kTfjFb7L2W4IJLr+3cVUEb2XeANz2lhr+64xXvuwh6Fw2rrSrzQh+Y9JDgOrhYeN7b8ZH8ahDQ HZXPgS80Ua3KB6IPZBoy4umwteBQLEJVn/ABpqYtSGYFABuJAScs+SCYORz7bwU1bkdgSLHm6E9Lt U7vvSAreGl2igY+im1bBj7K3mlDaZqoedBtuWi5SoPWJwfn408vFpbOKGCXGOZyWWxe343l/3j1NK acG2VLpDcMp72GCVc6K+nWYI9w4ps634AFRTMfUnRLt5H+mRM5HGEkVVaPA1jLx6CuZLbL4amMwRy DH8XC20Zmfpz/DBwNELg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gq-0006gl-QW; Wed, 26 Jun 2019 15:18:28 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hg9gn-0006eU-Hu for ath11k@lists.infradead.org; Wed, 26 Jun 2019 15:18:26 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 553CC60CF0; Wed, 26 Jun 2019 15:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562305; bh=tw4JGJU2h3EjgKUFahQIjYXI9mcocBNo6vNUOJ4aMUE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=daWVE3K++vD6l1N44G/OQRnluEC4evGS81owuuAlbd4hWukYHkywLr8BRIQWeJ3ft +Hqy4brLl7J9x6W29eeAIvA8duCaB8G1M0feazrmyy6qrfoBvYVKsY5dbT1FO31yTj zAu0k6S45iKVOejg+gPz10Bf+7rE79CEAG4kmOsU= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6B13760A05 for ; Wed, 26 Jun 2019 15:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561562305; bh=tw4JGJU2h3EjgKUFahQIjYXI9mcocBNo6vNUOJ4aMUE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=daWVE3K++vD6l1N44G/OQRnluEC4evGS81owuuAlbd4hWukYHkywLr8BRIQWeJ3ft +Hqy4brLl7J9x6W29eeAIvA8duCaB8G1M0feazrmyy6qrfoBvYVKsY5dbT1FO31yTj zAu0k6S45iKVOejg+gPz10Bf+7rE79CEAG4kmOsU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6B13760A05 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 From: Kalle Valo To: ath11k@lists.infradead.org Subject: [PATCH 4/4] ath11k: use kstrtoint_from_user() instead of sscanf() Date: Wed, 26 Jun 2019 18:18:15 +0300 Message-Id: <1561562295-17402-4-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> References: <1561562295-17402-1-git-send-email-kvalo@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190626_081825_605433_A6966DA1 X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix checkpatch warning: drivers/net/wireless/ath/ath11k/debugfs_sta.c:494: Prefer kstrto to single variable sscanf As kstrtoint_from_user() can read directly from user buffer no need copy the buffer separately. Compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debugfs_sta.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c index 4a30293bbae4..82bada5a7479 100644 --- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c +++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c @@ -467,15 +467,13 @@ static const struct file_operations fops_htt_peer_stats = { }; static ssize_t ath11k_dbg_sta_write_peer_pktlog(struct file *file, - const char __user *ubuf, + const char __user *buf, size_t count, loff_t *ppos) { struct ieee80211_sta *sta = file->private_data; struct ath11k_sta *arsta = (struct ath11k_sta *)sta->drv_priv; struct ath11k *ar = arsta->arvif->ar; - u8 buf[32] = {0}; int ret, enable; - ssize_t rc; mutex_lock(&ar->conf_mutex); @@ -484,18 +482,9 @@ static ssize_t ath11k_dbg_sta_write_peer_pktlog(struct file *file, goto out; } - rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, ubuf, count); - if (rc < 0) { - ret = rc; + ret = kstrtoint_from_user(buf, count, 0, &enable); + if (ret) goto out; - } - buf[rc] = '\0'; - - ret = sscanf(buf, "%d", &enable); - if (ret != 1) { - ret = -EINVAL; - goto out; - } ar->debug.pktlog_peer_valid = enable; memcpy(ar->debug.pktlog_peer_addr, sta->addr, ETH_ALEN);