From patchwork Fri Mar 17 23:06:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13179569 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 9F7A0C74A5B for ; Fri, 17 Mar 2023 23:08:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229532AbjCQXHP (ORCPT ); Fri, 17 Mar 2023 19:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbjCQXHO (ORCPT ); Fri, 17 Mar 2023 19:07:14 -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 411964488 for ; Fri, 17 Mar 2023 16:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679094385; 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=i4/4tOgwP/X+xCG5XArCzD3rKZ+G/aYQCWfq3NKAVk0=; b=OFZYryhY8a8j6wY25jWfU8Xm/w6c5EJbZKSz0pBWRP69FCDGxUDQuNeYPAK6iPUcgUW3a7 /6PqFRHISdgfxvfpVvSPOmazzHbcsOfEepdXYwLbYJsVE+rm2sX9paMLkj2QtKCknSqy9N rvsLWwEUU7UgTGPlzchcCooJoYUftSY= 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-663-QQ9XPgZjP6uoe6SgGaur8Q-1; Fri, 17 Mar 2023 19:06:23 -0400 X-MC-Unique: QQ9XPgZjP6uoe6SgGaur8Q-1 Received: by mail-qk1-f199.google.com with SMTP id a14-20020a05620a16ce00b0074616159bd9so3396393qkn.2 for ; Fri, 17 Mar 2023 16:06:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679094383; 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=i4/4tOgwP/X+xCG5XArCzD3rKZ+G/aYQCWfq3NKAVk0=; b=GOJ7s9Sb42mGPKRSf8NYBR1fkQARi+O2MZtgccS/SwDh/F3EEtYdK8U49fMR8ccngk 0xos9ey7A1hFmd/q7OPhRDmkqoZzYQX/xtTux96RoPX1RH2aRq/CAppSWEY7b14MRbOS fjFbLvTR/sWspV4sK1DazzFmD1V4s86YaKf7a2ls+WoB3BWTph0HdxXaGCEwFrbIz7ga eV8lRTmNWvOiRHLmMcU9kITRu6borOu1bdqatXd0ih3+2Aii39k9QStCDP2TScQuU3ob S0QXSLlwoeKNBRPpHjJ6/HrqFD/hRIjkmSMrPdzcYV0xZSXb0xrg1uppCE74xNOmo8wI 48ag== X-Gm-Message-State: AO0yUKV2NSejQfaGkiCxTb1LCXqOdUzN0ymlWIFaHbCJN3SR9E9ZnSxb LRedGDFVNT1V7mwnckBV6AGE4vQ0rb78xIo3OPccBfCqgwGxaotNW4x6nO/144aSwoAJ55gdgaX HLhHoumsmLd7EUq+6QVUqvZxSakDm7A== X-Received: by 2002:a05:6214:1250:b0:56e:a0fb:18ab with SMTP id r16-20020a056214125000b0056ea0fb18abmr43535289qvv.19.1679094383189; Fri, 17 Mar 2023 16:06:23 -0700 (PDT) X-Google-Smtp-Source: AK7set+CvCK7xfA2z4a8rn/h8YoqqpGCDL9n+rxJp8+V5zj/8rhXm9CC2WiHcUfi72KYNIoH5Wu+QQ== X-Received: by 2002:a05:6214:1250:b0:56e:a0fb:18ab with SMTP id r16-20020a056214125000b0056ea0fb18abmr43535257qvv.19.1679094382804; Fri, 17 Mar 2023 16:06:22 -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 13-20020a37080d000000b007456efa7f73sm2518474qki.85.2023.03.17.16.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 16:06:22 -0700 (PDT) From: Tom Rix To: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, michal.simek@xilinx.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] fpga: xilinx-pr-decoupler: remove unused xlnx_pr_decouple_read function Date: Fri, 17 Mar 2023 19:06:17 -0400 Message-Id: <20230317230617.1673923-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org clang with W=1 reports drivers/fpga/xilinx-pr-decoupler.c:37:19: error: unused function 'xlnx_pr_decouple_read' [-Werror,-Wunused-function] static inline u32 xlnx_pr_decouple_read(const struct xlnx_pr_decoupler_data *d, ^ This static function is not used, so remove it. Signed-off-by: Tom Rix Acked-by: Xu Yilun --- drivers/fpga/xilinx-pr-decoupler.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/fpga/xilinx-pr-decoupler.c b/drivers/fpga/xilinx-pr-decoupler.c index 2d9c491f7be9..b6f18c07c752 100644 --- a/drivers/fpga/xilinx-pr-decoupler.c +++ b/drivers/fpga/xilinx-pr-decoupler.c @@ -34,12 +34,6 @@ static inline void xlnx_pr_decoupler_write(struct xlnx_pr_decoupler_data *d, writel(val, d->io_base + offset); } -static inline u32 xlnx_pr_decouple_read(const struct xlnx_pr_decoupler_data *d, - u32 offset) -{ - return readl(d->io_base + offset); -} - static int xlnx_pr_decoupler_enable_set(struct fpga_bridge *bridge, bool enable) { int err;