Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp358106rwb; Mon, 28 Nov 2022 22:31:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf6j73mFIwDPI2unrszBUxoi4gSTDGfyBSEckVFyJe+RLUN6we8I2EFrJGGJmi7LwiamZ14D X-Received: by 2002:a17:906:eda3:b0:7ae:9188:ddc2 with SMTP id sa3-20020a170906eda300b007ae9188ddc2mr32762948ejb.647.1669703517014; Mon, 28 Nov 2022 22:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669703517; cv=none; d=google.com; s=arc-20160816; b=xv9lbBJ3Xb8IxiipknyCN3TBWmRQAmWLJ/za9YCHFCdKBm41nxnVLjcoq8jcmcrdQa hrmezGma/E7o7PuyxfMxE2WuF/Oax7ANK4/SLpxtibqNaiX73lVKDj/Fs88QTdULPnfr XFjQ7Wjxo7EjVv+S4IKKV6qoIzT2A246tq61O7NiQS+F7c1cG7O+YrxAs5xUGxM8Hprw oqtCjspqumG0Ei8wmm4114QyaayQVrcMBOuYfjNvbRpDF/InI/ztysT9EwzwaCbYsIlm RF7UQI1Lzo/0CtlLA4tqrTHy4LTn6Kn2bwuCf9MHBqT3PP4Vq/nBurZXGrPljrJsgsTJ Mxzg== 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=OqxWZqZJEKWwFbpciKYQ3sR8JuWh6CoIEFnrQGe3HJg=; b=dgxV5AK1/NlgmJ+zhnaEsCdu529gXPYcGe/ZbyE589F1JlMe8Sk3DJnwGArE6sRdqi w7N2KqJ4rhEno2QWpLZ5v7+Dtt2s9Ns68TMwvwi8JfzQHF7hxQqtM5qyJsV+zoxf8fOR 25y3ZitNKVI5QXNNrrzkiRhBuN4FqCryndXfbb/IiAEQdUhJLT+/jS7nz+2NjXjP100h uB6JjBBgb+/dS6pOOAvl2suZZJVnMymfLrZYzfnfISF2EigoXDWUtyGQhj2xB121HMiU Mujg9z2KQek4TNnQX+bZdgKgIwCtl4DRzCU3+2mvbSZ3JLVX7QdrGGOlvheZzGTVE4Cu ihSA== 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 nb42-20020a1709071caa00b007a96e504c7esi12087243ejc.753.2022.11.28.22.31.12; Mon, 28 Nov 2022 22:31:57 -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 S235675AbiK2GY0 (ORCPT + 67 others); Tue, 29 Nov 2022 01:24:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235214AbiK2GYZ (ORCPT ); Tue, 29 Nov 2022 01:24:25 -0500 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91B74875F; Mon, 28 Nov 2022 22:24:23 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VVzIEqb_1669703050; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VVzIEqb_1669703050) by smtp.aliyun-inc.com; Tue, 29 Nov 2022 14:24:20 +0800 From: Jiapeng Chong To: stas.yakovlev@gmail.com Cc: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] ipw2x00: Remove some unused functions Date: Tue, 29 Nov 2022 14:24:07 +0800 Message-Id: <20221129062407.83157-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 Functions write_nic_auto_inc_address() and write_nic_dword_auto_inc() are defined in the ipw2100.c file, but not called elsewhere, so remove these unused functions. drivers/net/wireless/intel/ipw2x00/ipw2100.c:427:20: warning: unused function 'write_nic_dword_auto_inc'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3285 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index b0f23cf1a621..0812db8936f1 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -418,17 +418,6 @@ static inline void write_nic_byte(struct net_device *dev, u32 addr, u8 val) write_register_byte(dev, IPW_REG_INDIRECT_ACCESS_DATA, val); } -static inline void write_nic_auto_inc_address(struct net_device *dev, u32 addr) -{ - write_register(dev, IPW_REG_AUTOINCREMENT_ADDRESS, - addr & IPW_REG_INDIRECT_ADDR_MASK); -} - -static inline void write_nic_dword_auto_inc(struct net_device *dev, u32 val) -{ - write_register(dev, IPW_REG_AUTOINCREMENT_DATA, val); -} - static void write_nic_memory(struct net_device *dev, u32 addr, u32 len, const u8 * buf) { -- 2.20.1.7.g153144c