From patchwork Wed Mar 22 12:28:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13184004 X-Patchwork-Delegate: kvalo@adurom.com 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 5704FC6FD1C for ; Wed, 22 Mar 2023 12:29:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjCVM3t (ORCPT ); Wed, 22 Mar 2023 08:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbjCVM3r (ORCPT ); Wed, 22 Mar 2023 08:29:47 -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 527303B654 for ; Wed, 22 Mar 2023 05:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679488140; 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=/RmaCdFiflknr5F/EzALZWl8EQAEMlohlo+Bq/6n784=; b=IGRiaXY47/CqfQ0HhrV9YXycAt4KYHUdiaYitJlJoN7/+XZUvAlCO1iMkYBinss56kGpGa I4VfKnY1V4KbvSmUIJIRMYVBqB1s6p2S0mASlZ/PXfsonM0pQGzWH+3UHIak4lL0kzT2Ui AQa5juRrC8KEnTtunlpOkaxNBguWy6c= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-119-pFCRsfXdN_O2DN3GCPPKRg-1; Wed, 22 Mar 2023 08:28:58 -0400 X-MC-Unique: pFCRsfXdN_O2DN3GCPPKRg-1 Received: by mail-qk1-f199.google.com with SMTP id e14-20020a05620a208e00b0074270b9960dso8552031qka.22 for ; Wed, 22 Mar 2023 05:28:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679488138; 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=/RmaCdFiflknr5F/EzALZWl8EQAEMlohlo+Bq/6n784=; b=Ha92M8Uhouxonl1iJO13QQga9cv2xgR5j2+pSZhlTWSAVMTb4046dIt8EXXPmpnNIG YXQPi4Zp4/bxuMPbFUb3iiOlh19IJQqu4cknbVLe1J41b2w39ypn8NcA3+ryUr4VLa6M ShXcFXHbNWTc+I+wnZsXbGC8wIoRDgaoh+8r9Vyr8veaoXMKba63AyDYuyCWzqUxoIZg 85xP0ucr0OqsH2di35UcwXZDDdyTucle3iYukW+/UvNsObdFWaqfo6psDuP59wCBkNxp muOBYWpQdKo4AexxBNRTZiRYkeJMzQHihTHnyH0tVNUs2rWJmLNpRc1LJevc+oXgo57s CBEg== X-Gm-Message-State: AO0yUKWCIQHrosroxgWCq9vCZ69mOox16+BH/Vs47GvcZyvdhMCxa6zP CS5jj8GY5nP7pE4HbBUx6a5VbUdzKm8ppKL27jVFcOUdSPGM5Vrt4RXkjOe2h3N5LqzhgwiOAGN la8ehEM0CAyYYILx/R/w2zuqK2dw= X-Received: by 2002:ac8:7f8e:0:b0:3bf:d9d2:484f with SMTP id z14-20020ac87f8e000000b003bfd9d2484fmr5698839qtj.11.1679488138427; Wed, 22 Mar 2023 05:28:58 -0700 (PDT) X-Google-Smtp-Source: AK7set8Gcxx8GdV/OeVtTOhHQR7MlyYiQ1UjJcEDEFgxn3029wWSBoOMbr8ofWD/oxpFcUXsweisow== X-Received: by 2002:ac8:7f8e:0:b0:3bf:d9d2:484f with SMTP id z14-20020ac87f8e000000b003bfd9d2484fmr5698812qtj.11.1679488138211; Wed, 22 Mar 2023 05:28:58 -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 j13-20020a37ef0d000000b00729b7d71ac7sm11174245qkk.33.2023.03.22.05.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 05:28:57 -0700 (PDT) From: Tom Rix To: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] ath10k: remove unused ath10k_get_ring_byte function Date: Wed, 22 Mar 2023 08:28:55 -0400 Message-Id: <20230322122855.2570417-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org clang with W=1 reports drivers/net/wireless/ath/ath10k/ce.c:88:1: error: unused function 'ath10k_get_ring_byte' [-Werror,-Wunused-function] ath10k_get_ring_byte(unsigned int offset, ^ This function is not used so remove it. Signed-off-by: Tom Rix Reviewed-by: Simon Horman --- drivers/net/wireless/ath/ath10k/ce.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index b656cfc03648..c27b8204718a 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -84,13 +84,6 @@ ath10k_set_ring_byte(unsigned int offset, return ((offset << addr_map->lsb) & addr_map->mask); } -static inline unsigned int -ath10k_get_ring_byte(unsigned int offset, - struct ath10k_hw_ce_regs_addr_map *addr_map) -{ - return ((offset & addr_map->mask) >> (addr_map->lsb)); -} - static inline u32 ath10k_ce_read32(struct ath10k *ar, u32 offset) { struct ath10k_ce *ce = ath10k_ce_priv(ar);