Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C27FC6FD1C for ; Mon, 20 Mar 2023 23:35:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229617AbjCTXfr (ORCPT ); Mon, 20 Mar 2023 19:35:47 -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 ); 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 ; 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 ; 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-Google-Smtp-Source: AK7set/MSGMYSq3HoZIhVmyS6T1eXwZz2enrFbuKq9nPI2QR/JAsY9RsSg0g8FFAWo/GPQAdeced0g== 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 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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