Message ID | 20230320233448.1729899-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1491879wrt; Mon, 20 Mar 2023 16:38:39 -0700 (PDT) X-Google-Smtp-Source: AK7set/djGGSWLoqU83nHw0nLakTe1DcDaAuQeIYF2tiqbo2nMbk2tm2g7kD4qqKpOEn+h9tidxk X-Received: by 2002:a17:902:e74f:b0:1a1:d979:30f2 with SMTP id p15-20020a170902e74f00b001a1d97930f2mr255764plf.17.1679355518692; Mon, 20 Mar 2023 16:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679355518; cv=none; d=google.com; s=arc-20160816; b=TGOReUey/ekobB18gAKDcAU+i4Uu+I8gTLNGUHZA15Smg7RKhvflj/Z1IBl6gCp4PT 3N3SQQf0SwyP/ZqYQPeZCVHnhaoR2mmozR+jsMyFIdgZ0yucLkMVvOHLA97eSNatrrcg Ukdet4FJzB3pYNll+GPkUJ/gOFbIspCkdyG40rjYEOpYEdEmZWZvWChGNz5hyEKv40Ov IBdceuVi3o0oknGVZ/uu0R1X7ucJG44ndD7w+Cd2Tnfmy3y+P7e1+9AA7+NIJwCAbyyM bmxL4+68J/RGBBV7fzvWC+Pv5AtDJJ6m6enGAErIFbAQ+5TgiLTqfFxBRR01V596fAuG 9o1Q== 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:dkim-signature; bh=eLRNau9yfu5hUtNACbqD47eGjINw3xSx6xkN8nR2nXo=; b=vdZ5FcSDS5YeytFrBRu/vlvr9Qy2qu8ppw0PRaBWIpMtBAXxz0msFqmzMwrwOh+8c/ k1pgGP1+hxEWojbGlwogW+MG+16+8O7ZzafFT/7noY5Gi3HisDvuCdXAkpInS9Jxy7Mg YV7xI78WAyg6VG7pw6nQ9iPIihZ0hdTOV3gM1KkDdenaFnUaPDvvlMIPikDTS3oPS2jD AiphU0UjRpWG3Cv8ErGIdqTVl13elhXpt8H0FzseZzQYTViFkshuM0eL019RKzcBVuTz N9Bhm4GxZuhzitvVd1Sj6hcz6UZAhJEuX4+4PZGegtsNHk4XNCH2fP+l+ht96XQbv/mE Vzww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ftsUeORo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a170902d71800b001a1b245f8c0si8705007ply.359.2023.03.20.16.38.25; Mon, 20 Mar 2023 16:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ftsUeORo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjCTXfq (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Mon, 20 Mar 2023 19:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjCTXfl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Mar 2023 19:35:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A320E32CDA for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 16:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679355293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eLRNau9yfu5hUtNACbqD47eGjINw3xSx6xkN8nR2nXo=; b=ftsUeORo919szKTO1NisJUIbZ98MbRl142IwhMnQRmUP7ToeRFgyRNvIruhYgRODrTwp/P HFtkWD3Gd7bwct2L7i2XGuVP6Zz5KZCAsazfu4G1BlZFhP9gvrHLo/PwF3kKus9ZbtxSCY OtRzp+C6v64LrLk7SM8fhCJi+V9OH3M= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-591-NgfrCnvdNUyQY9iC6NRZHA-1; Mon, 20 Mar 2023 19:34:52 -0400 X-MC-Unique: NgfrCnvdNUyQY9iC6NRZHA-1 Received: by mail-qt1-f198.google.com with SMTP id w13-20020ac857cd000000b003e37d3e6de2so1251741qta.16 for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 16:34:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679355292; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eLRNau9yfu5hUtNACbqD47eGjINw3xSx6xkN8nR2nXo=; b=Z025chv6CL5d+OR3CPhjgnWKcFBbho6HEIm/cegxzMK7/GggeMjxoEJQuzULjXJW1r s9U3v1+iHYLTGZUoOA+wbaUkV5Lk82yf8aZ8jJPCFY/TZNg9pPqbzJj5SyigooESpSTt SZ9hHoBXTYUy1o3MOjMNMcZGjL31rV9bssVklI5OGwKbM6YIRR+xFvbYZCe7yiD5RP7x yfXYxUrY5/tMMsZAHK7nIe6vYlgfcZDUBY1STA5xczKyqVe6pkKn9Iy5LuV5svPuclbV YHSXLN7bBnvrHJ7EWc2Ltgqu2Ouy7AvFefyJn5aJZEeqciIPh7/yY+KzqmvJEGTu/R69 ruag== X-Gm-Message-State: AO0yUKWcAVVLO1t6bfnyFbrrSxALFjlqFY/6lrkDWEwJFVGw6zktPlWM ve8QhjoMuBoYcUadAQtwEE7hnRD7+g0rhhw35cZO+U61tamw4Kjq0EHONnnCTrJWUHufb7LSmUA z7hsRK8mmYEnHGkm7mw3za9XA X-Received: by 2002:ac8:590d:0:b0:3bf:c407:10c6 with SMTP id 13-20020ac8590d000000b003bfc40710c6mr1680916qty.13.1679355292033; Mon, 20 Mar 2023 16:34:52 -0700 (PDT) X-Received: by 2002:ac8:590d:0:b0:3bf:c407:10c6 with SMTP id 13-20020ac8590d000000b003bfc40710c6mr1680898qty.13.1679355291794; Mon, 20 Mar 2023 16:34:51 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 5-20020a370b05000000b0071eddd3bebbsm8312839qkl.81.2023.03.20.16.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 16:34:51 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: tony0620emma@gmail.com, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] wifi: rtw88: remove unused rtw_pci_get_tx_desc function Date: Mon, 20 Mar 2023 19:34:48 -0400 Message-Id: <20230320233448.1729899-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760931892293652957?= X-GMAIL-MSGID: =?utf-8?q?1760931892293652957?= |
Series |
wifi: rtw88: remove unused rtw_pci_get_tx_desc function
|
|
Commit Message
Tom Rix
March 20, 2023, 11:34 p.m. UTC
clang with W=1 reports
drivers/net/wireless/realtek/rtw88/pci.c:92:21: error:
unused function 'rtw_pci_get_tx_desc' [-Werror,-Wunused-function]
static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx)
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/wireless/realtek/rtw88/pci.c | 7 -------
1 file changed, 7 deletions(-)
Comments
> -----Original Message----- > From: Tom Rix <trix@redhat.com> > Sent: Tuesday, March 21, 2023 7:35 AM > To: tony0620emma@gmail.com; kvalo@kernel.org; davem@davemloft.net; edumazet@google.com; kuba@kernel.org; > pabeni@redhat.com; nathan@kernel.org; ndesaulniers@google.com > Cc: linux-wireless@vger.kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; > llvm@lists.linux.dev; Tom Rix <trix@redhat.com> > Subject: [PATCH] wifi: rtw88: remove unused rtw_pci_get_tx_desc function > > clang with W=1 reports > drivers/net/wireless/realtek/rtw88/pci.c:92:21: error: > unused function 'rtw_pci_get_tx_desc' [-Werror,-Wunused-function] > static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx) > ^ > This function is not used, so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> > --- > drivers/net/wireless/realtek/rtw88/pci.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c > index b4bd831c9845..6a8e6ee82069 100644 > --- a/drivers/net/wireless/realtek/rtw88/pci.c > +++ b/drivers/net/wireless/realtek/rtw88/pci.c > @@ -89,13 +89,6 @@ static void rtw_pci_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) > writel(val, rtwpci->mmap + addr); > } > > -static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx) > -{ > - int offset = tx_ring->r.desc_size * idx; > - > - return tx_ring->r.head + offset; > -} > - > static void rtw_pci_free_tx_ring_skbs(struct rtw_dev *rtwdev, > struct rtw_pci_tx_ring *tx_ring) > { > -- > 2.27.0
Tom Rix <trix@redhat.com> wrote: > clang with W=1 reports > drivers/net/wireless/realtek/rtw88/pci.c:92:21: error: > unused function 'rtw_pci_get_tx_desc' [-Werror,-Wunused-function] > static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx) > ^ > This function is not used, so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> > Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Patch applied to wireless-next.git, thanks. c9b6111a6f94 wifi: rtw88: remove unused rtw_pci_get_tx_desc function
diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index b4bd831c9845..6a8e6ee82069 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -89,13 +89,6 @@ static void rtw_pci_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) writel(val, rtwpci->mmap + addr); } -static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx) -{ - int offset = tx_ring->r.desc_size * idx; - - return tx_ring->r.head + offset; -} - static void rtw_pci_free_tx_ring_skbs(struct rtw_dev *rtwdev, struct rtw_pci_tx_ring *tx_ring) {