Message ID | 20230319135418.1703380-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 j10csp741670wrt; Sun, 19 Mar 2023 07:24:52 -0700 (PDT) X-Google-Smtp-Source: AK7set/LMAw16sLM90cLVCL4Vvgv92Y7ggNBDJv5hAJkfwI9zaP+yI5/fCCkzq47SMx1S/LzzLKN X-Received: by 2002:a17:902:f544:b0:1a1:a6ac:c1e5 with SMTP id h4-20020a170902f54400b001a1a6acc1e5mr10158184plf.61.1679235892702; Sun, 19 Mar 2023 07:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679235892; cv=none; d=google.com; s=arc-20160816; b=qUsO6sqanv61ep4haISRq3sEy1zbgqiLcq17TMN6zEDNv8bzliEQvjkHmFk7PEGsS6 RLpTw6ZPRIxVCzKafR65qTFvshzLsyU1IpNRaQkF1FFJ1SSlVjsAht8UVLFrC6BF5Ic5 nnJVT96JeaqbG9VfPAqPg/qMXBU65yd2N8A68Vs2YLnniD0fopcN8TASWlaEnTC5Dc8B yHc//tiXMd+ItEd3HCy9jHaTsaU6Ra/qJ+fCMi8k3fv4TA045el1PmJJHhDIGdmKU//Z r6tpz2f2sWtwR/vn3Fys0aUfO0JGwlec5dNvbcqim9VIcttGOYjwDxC6uTaklbLmB6vD MsnA== 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=SE+hbc2PpdOm6jFmUnfn7gxJd8fzcxI50vFrTMNLyGw=; b=vRZ8Taa9fiRkoCYsbBohE3UZT0JrwAD7nDO2+dZyVk3X0rQmSWxtT73Kf0Eu40HXcy eLyzOQvwCc2wajv+NErM51lx0+NRMw1CAC7ZoVqjpnR33BGZychYcQtWrh94uLaoXX2y v28J0qJsOD1Mgi90vxTmOyqonvOyVzwWeQlS+54rgpz0EK7AQuoiMsxIhzZAQSwGHoDa GXk4HvBNVkxbr2axNtjC59Uk/Ll9A+5HZRkeHW3OvybRcHON+3wHKQa0RKdzYni5SXHB IFLym5YZRwz5VSkmIrTr4YbpHaxc6gZHE72tunq3EFuTzvT3NRF/gU6sPdu2PkefiVLB N4xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hCMHkqzG; 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 r20-20020a6560d4000000b0050f74bf6b3asi989352pgv.700.2023.03.19.07.24.38; Sun, 19 Mar 2023 07:24:52 -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=hCMHkqzG; 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 S230178AbjCSNzZ (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sun, 19 Mar 2023 09:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjCSNzW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Mar 2023 09:55:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F848B744 for <linux-kernel@vger.kernel.org>; Sun, 19 Mar 2023 06:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679234077; 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=SE+hbc2PpdOm6jFmUnfn7gxJd8fzcxI50vFrTMNLyGw=; b=hCMHkqzGmIxg0gcAXnKqWvE5oIj3uvG3Jz/8U+oiNxs7KcCbTmqrp44hGXT2gLPNCyvIew EetIAmMeMPYxOap5qdYUa4YwR5aDR3b7eyTzIL3WlKt67vLfV2ZkV3LYdt5cx3SI+319Dy kQSV/OyVxKGbHUxub+RpQs90C2U4aJU= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-266-hs1Rz0_xP5SnoKie4AyqjQ-1; Sun, 19 Mar 2023 09:54:35 -0400 X-MC-Unique: hs1Rz0_xP5SnoKie4AyqjQ-1 Received: by mail-qt1-f199.google.com with SMTP id t22-20020ac86a16000000b003bd1c0f74cfso5313249qtr.20 for <linux-kernel@vger.kernel.org>; Sun, 19 Mar 2023 06:54:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679234075; 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=SE+hbc2PpdOm6jFmUnfn7gxJd8fzcxI50vFrTMNLyGw=; b=th+Noa32q3Yys+YoKdUF6I1UVm19sLdiRTd2Bg69vD+U2sWyml06mtJf3h1Rqs1JzC ls+814EI6L5XT+jtcrSA+zb4HnuoiDtxAauw+jgKisJeoY9wODkyP5t61d1Qf81KYSMq +j2Wbod5i7vCvFHw7fRSfpebOJcLlBYjGMfM7ZWO0e/W1lt+FVZ2WJwCKyrOSkmVzFFv MmG7kC+tZm5sKimdJ8bsUORFqbuFCezSBB36mHrfhzzkCdmBJQ5CyOaqM8KzPaX1x2zL r/F0AASjK/MIq41aZyQRLS25btQe0nP5JMvKRCTzO+EAroiRVpZsH/0L/eBeTjsjlV4d NjDg== X-Gm-Message-State: AO0yUKUPP+MRrFf0wnXOVgk15G31XBBw8Vn/ajhi+IWGXMxteM2+LMHq sezEzZx52Ux2peB6AOmaeF2tiA4baHZcWZtALZxMSVA7SLFcZn3MShlJVtd+JRcmX8apiDUbvjp F38l8UK9iIre5DeVtO5yUMy1L X-Received: by 2002:a05:622a:1387:b0:3bf:daae:7ee6 with SMTP id o7-20020a05622a138700b003bfdaae7ee6mr22103389qtk.18.1679234075266; Sun, 19 Mar 2023 06:54:35 -0700 (PDT) X-Received: by 2002:a05:622a:1387:b0:3bf:daae:7ee6 with SMTP id o7-20020a05622a138700b003bfdaae7ee6mr22103366qtk.18.1679234075026; Sun, 19 Mar 2023 06:54:35 -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 x26-20020ac86b5a000000b003bfa2c512e6sm4859344qts.20.2023.03.19.06.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 06:54:34 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: stas.yakovlev@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] ipw2x00: remove unused _ipw_read16 function Date: Sun, 19 Mar 2023 09:54:18 -0400 Message-Id: <20230319135418.1703380-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=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: <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?1760806454968488046?= X-GMAIL-MSGID: =?utf-8?q?1760806454968488046?= |
Series |
ipw2x00: remove unused _ipw_read16 function
|
|
Commit Message
Tom Rix
March 19, 2023, 1:54 p.m. UTC
clang with W=1 reports
drivers/net/wireless/intel/ipw2x00/ipw2200.c:381:19: error:
unused function '_ipw_read16' [-Werror,-Wunused-function]
static inline u16 _ipw_read16(struct ipw_priv *ipw, unsigned long ofs)
^
This function and its wrapping marco are not used, so remove them.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/wireless/intel/ipw2x00/ipw2200.c | 13 -------------
1 file changed, 13 deletions(-)
Comments
Tom Rix <trix@redhat.com> writes: > clang with W=1 reports > drivers/net/wireless/intel/ipw2x00/ipw2200.c:381:19: error: > unused function '_ipw_read16' [-Werror,-Wunused-function] > static inline u16 _ipw_read16(struct ipw_priv *ipw, unsigned long ofs) > ^ > This function and its wrapping marco are not used, so remove them. > > Signed-off-by: Tom Rix <trix@redhat.com> I'll add "wifi:" to the title.
Tom Rix <trix@redhat.com> wrote: > clang with W=1 reports > drivers/net/wireless/intel/ipw2x00/ipw2200.c:381:19: error: > unused function '_ipw_read16' [-Werror,-Wunused-function] > static inline u16 _ipw_read16(struct ipw_priv *ipw, unsigned long ofs) > ^ > This function and its wrapping marco are not used, so remove them. > > Signed-off-by: Tom Rix <trix@redhat.com> Patch applied to wireless-next.git, thanks. c7e39d70613c wifi: ipw2x00: remove unused _ipw_read16 function
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index b91b1a2d0be7..dfe0f74369e6 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -377,19 +377,6 @@ static inline u8 _ipw_read8(struct ipw_priv *ipw, unsigned long ofs) _ipw_read8(ipw, ofs); \ }) -/* 16-bit direct read (low 4K) */ -static inline u16 _ipw_read16(struct ipw_priv *ipw, unsigned long ofs) -{ - return readw(ipw->hw_base + ofs); -} - -/* alias to 16-bit direct read (low 4K of SRAM/regs), with debug wrapper */ -#define ipw_read16(ipw, ofs) ({ \ - IPW_DEBUG_IO("%s %d: read_direct16(0x%08X)\n", __FILE__, __LINE__, \ - (u32)(ofs)); \ - _ipw_read16(ipw, ofs); \ -}) - /* 32-bit direct read (low 4K) */ static inline u32 _ipw_read32(struct ipw_priv *ipw, unsigned long ofs) {