Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2506665rwj; Mon, 19 Dec 2022 05:37:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7T2bMholgWlg3j/6zFzCF0UWfUhkxarrythsk4NJ3EawIG+AxTsIAHIhlvCkS7NIYsdKgN X-Received: by 2002:a05:6a20:d805:b0:a2:43b7:98a6 with SMTP id iv5-20020a056a20d80500b000a243b798a6mr48464836pzb.10.1671457057040; Mon, 19 Dec 2022 05:37:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671457057; cv=none; d=google.com; s=arc-20160816; b=MUchi5g2X4NqE0fl808pEkmJo/VwmaWfIgwIWwU9Q+OIOGnkkSdgibjaT4KJxIs5iL p7cpDmitQMwyuPOx4+5hgwkXsXdjeT6K3gTjzs/VUhHt11sj+ONC6IBchYNd7Z8XR3Bd Gda0N4FKpO7kTMPK3MHAsvojHwvlRgJrZkK0lf7HWOz+IPC8TXgZQRvLln4uwwGq83Kp cFJjHeBXdKXprRxPmR2nZEPbfhjLToNMhWkNZpNamjiRm+bNcWFB0FsOao1xqvHyP6wj F9xG5TNfe0A4p+YBuuQFkzmft4NV6BT35gA8RERRUBBktTfAIWiT1Qzk4jA7EhAT+V1L fXFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Q2T+8eGstFzqfURmB2DK/2675JDCw0ePh9TnX96SLH4=; b=oP+CdZaT7NVk08osIZUg5LkxCDJgN7Z8b2Pw42G5oY02xKELCVmzOvS4HYlDsTXXQz 1nv/mGtDaKW2MgxhQ0AxXyXMZxm8pX0wZFc9NIV91D29IeLtSL1H+sg1kRV9JgDV8BcU hSDhSeCBEkOrXBDS0B5rohASyLfQ1eUaAfc6NVFshDmXe9+ttFc8jTN40Izif9ZIYRe4 bedfik7FjcHAl7DM33/bIMMbqMX/P4FDk8N9H46xadmNE1kcTFWcVvUeLEl+C+spHoUP p2sB2a+STo4ilUQ/6u6nsdMrfu7unPpx02jrK9E6mIGVJ6ThcszGM+w8BJNS5VullaNf UGhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 3-20020a630b03000000b0043ac3ec9d9esi10670103pgl.595.2022.12.19.05.37.28; Mon, 19 Dec 2022 05:37:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231938AbiLSNVE (ORCPT + 66 others); Mon, 19 Dec 2022 08:21:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiLSNVD (ORCPT ); Mon, 19 Dec 2022 08:21:03 -0500 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C150266B; Mon, 19 Dec 2022 05:21:00 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R991e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VXhf1e9_1671456046; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VXhf1e9_1671456046) by smtp.aliyun-inc.com; Mon, 19 Dec 2022 21:20:57 +0800 From: Jiapeng Chong To: kvalo@kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] wifi: ath10k: Remove the unused function ath10k_ce_shadow_src_ring_write_index_set() Date: Mon, 19 Dec 2022 21:20:41 +0800 Message-Id: <20221219132041.91418-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The function ath10k_ce_shadow_src_ring_write_index_set is defined in the ce.c file, but not called elsewhere, so remove this unused function. drivers/net/wireless/ath/ath10k/ce.c:212:1: warning: unused function 'ath10k_ce_shadow_dest_ring_write_index_set'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3519 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/wireless/ath/ath10k/ce.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index 59926227bd49..c2f3bd35c392 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -208,14 +208,6 @@ ath10k_ce_shadow_src_ring_write_index_set(struct ath10k *ar, ath10k_ce_write32(ar, shadow_sr_wr_ind_addr(ar, ce_state), value); } -static inline void -ath10k_ce_shadow_dest_ring_write_index_set(struct ath10k *ar, - struct ath10k_ce_pipe *ce_state, - unsigned int value) -{ - ath10k_ce_write32(ar, shadow_dst_wr_ind_addr(ar, ce_state), value); -} - static inline void ath10k_ce_src_ring_base_addr_set(struct ath10k *ar, u32 ce_id, u64 addr) -- 2.20.1.7.g153144c