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 5C05BC6FD1F for ; Sun, 19 Mar 2023 13:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230356AbjCSNz0 (ORCPT ); Sun, 19 Mar 2023 09:55:26 -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 ); 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 ; 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 ; 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-Google-Smtp-Source: AK7set/SUf1dS9D3NGgKWgB9272dqTQaCIgVClcOcHUMHiPQbfT/rPxkVqzfjAoOoL29N2AJV31JPQ== 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 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 13 ------------- 1 file changed, 13 deletions(-) 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) { -- 2.27.0