From patchwork Tue May 28 05:48:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasanthakumar Thiagarajan X-Patchwork-Id: 10963711 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 4BA2B6C5 for ; Tue, 28 May 2019 05:48:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 396A5286BC for ; Tue, 28 May 2019 05:48:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BC7F286CC; Tue, 28 May 2019 05:48:31 +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 D4E35286BC for ; Tue, 28 May 2019 05:48:30 +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=qFCsy/q6t1YojurBwJ5/mG0iq+tTNCGT7Qj5+hZC+uE=; b=b+yzt3UG4wKFCa 96wuHHZShOZQMpfz+aWb5RcQPYPsmwdbhhP/E1xwLk4TaamEYL0oXEWrLjx78dYcnIFj5xWkkHZ3F CQYjyHlXSHFZ1MYQuI+ZXpt85rik3A9efGxQ8CkYrXOdLCDCpVu+kpmQmTODO0uFwByVMTeWJuUOD woMz8rLnCunWHzu9poAEEYBvVXkOQ/1/DQP0zkbUB6Sn2Vm11fx1oa9KaucQDQqSNmtoB6gwZ4xnq F2dwO0MolmfbXXLYOU6F38CzHXj2SsSOYtsRcJDLSMjvvvyDQkxJ54zNxCiBLBo8etza3sgHa656T DN/7iIxH+c6/8/E+NZRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVUyL-0007Bm-Ld; Tue, 28 May 2019 05:48:29 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVUyJ-0007Aa-6a for ath11k@lists.infradead.org; Tue, 28 May 2019 05:48:28 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 97DD5607CA; Tue, 28 May 2019 05:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559022506; bh=g4E4UgIscyFaV3kfn0hQ1stDiRVOLpEZQ0cIVx0yJXA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Op3Ye4TaH9/Ywu20mPRoin5fzYY3n1etuT/0m2xvJf3FrJ3H6bT2OssSbyy368nWw 3KXjIVYAp+1KGTdk/TFD/gaoWPTpcc34DiCtqJMvlXZxiNmqRfkTA+VTmcWtA8PIBd 9bhvsaGoe40ky2R3lwf3W+uVvf99ZkZjq4p2geT0= Received: from vasanth-lnx.qca.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vthiagar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8C3E060712 for ; Tue, 28 May 2019 05:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559022506; bh=g4E4UgIscyFaV3kfn0hQ1stDiRVOLpEZQ0cIVx0yJXA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Op3Ye4TaH9/Ywu20mPRoin5fzYY3n1etuT/0m2xvJf3FrJ3H6bT2OssSbyy368nWw 3KXjIVYAp+1KGTdk/TFD/gaoWPTpcc34DiCtqJMvlXZxiNmqRfkTA+VTmcWtA8PIBd 9bhvsaGoe40ky2R3lwf3W+uVvf99ZkZjq4p2geT0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8C3E060712 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=vthiagar@codeaurora.org From: Vasanthakumar Thiagarajan To: ath11k@lists.infradead.org Subject: [PATCH 2/4] ath11k: Fix sparse warnings for symbol not being static Date: Tue, 28 May 2019 11:18:04 +0530 Message-Id: <1559022486-7073-2-git-send-email-vthiagar@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1559022486-7073-1-git-send-email-vthiagar@codeaurora.org> References: <1559022486-7073-1-git-send-email-vthiagar@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190527_224827_257135_22BC474D X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.21 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 drivers/net/wireless/ath/ath11k/wmi.c:183:12: warning: symbol 'ath11k_wmi_tlv_parse_alloc' was not declared. Should it be static? drivers/net/wireless/ath/ath11k/qmi.c:505:22: warning: symbol 'qmi_wlanfw_ind_register_resp_msg_v01_ei' was not declared. Should it be static? Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath11k/qmi.c | 2 +- drivers/net/wireless/ath/ath11k/wmi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c index ecf09b8..4f3e25b 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.c +++ b/drivers/net/wireless/ath/ath11k/qmi.c @@ -502,7 +502,7 @@ }, }; -struct qmi_elem_info qmi_wlanfw_ind_register_resp_msg_v01_ei[] = { +static struct qmi_elem_info qmi_wlanfw_ind_register_resp_msg_v01_ei[] = { { .data_type = QMI_STRUCT, .elem_len = 1, diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 9ca44c4..50e6e31 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -180,7 +180,7 @@ static int ath11k_wmi_tlv_parse(struct ath11k_base *ar, const void **tb, (void *)tb); } -const void ** +static const void ** ath11k_wmi_tlv_parse_alloc(struct ath11k_base *ab, const void *ptr, size_t len, gfp_t gfp) {