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: 13179568 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C754C74A5B for ; Fri, 17 Mar 2023 23:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=k2B1tGqZWiM2vbB7teQdrQq0gEe3FIpi3S3uuc8kwwU=; b=MHjZehQdEVUIOm ZIut+OHTA8zhjHf0hw0fQI8SxrB7yxHCt3zNjnK8fncP6ONgmTkCJZeq8ovMUI3easEoUfts3nd47 T+z3M/APDhmXqT+tkDVCD+rk5IOhZ/2vb1Hpj0kYeT8fDaBV5G6vP7+7VoRqsBJecoy4Qo3OnaE1e BEFQC7v4O0LP+b1EnQ5tQn9tJyovtbljN2zcw8TN7vKFDRzLsppb9+D+w+c2m6eTovnLsTqzk37Hc 0ItxLbTbPrjeuPDLAG2um3d21PzQICoSXITABlOmZhH9rMup8Hn4xsyIf/JLFUn+jZm1VDK438Hax 57qkUFDTKCnx8KDdFXYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdJ9a-003dhu-0e; Fri, 17 Mar 2023 23:06:30 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdJ9W-003dhS-33 for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2023 23:06:28 +0000 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-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i4/4tOgwP/X+xCG5XArCzD3rKZ+G/aYQCWfq3NKAVk0=; b=VW2KEVEif8KhzwN7G5iPj0uiaDlnk2rXCi6pyjbHbh18cNmrkKtivKxzRKNs1c6HFyB7D5 L7ifGki3UOa4HqqwXs/mMteVVF48W89CzEuKD+N6u7PxU7Fo+/ZZB59VM/mJHYiQ68ID5F dvIFVQrcPVEWXCfqo4ZWJe1TKpfzgzk= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-18-zQeRs1NvPs2WspIg8bWLNw-1; Fri, 17 Mar 2023 19:06:23 -0400 X-MC-Unique: zQeRs1NvPs2WspIg8bWLNw-1 Received: by mail-qk1-f197.google.com with SMTP id dw26-20020a05620a601a00b0074300c772c0so3360082qkb.11 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=AuMLk91H9que5efKPizJZi8xSTfXiPCLiPr57lrfsuG9s73BiKCwwssCEsi4sQ4pS/ 5EdvKZdsCwJB2NnyzZbafRNd6IVObMZojIh750kO+GbiyjPDF1Y+Dgf27pQ208yRY3xj wV2653Vo5/cbs87hS3pdphPGI1TQvGnjVWwxq6Wch5dQ1M7kAbk6ZJfxjHXX4KX1K4Xo 7ehbUjf5aC2B78j2J/ASrVMMSaRxIhv0r78NoJIbM+ifPf8C2rEcjA2l+6rVD2mKvGPL aM66LwhKLoJODc7xDwkY9OZ3Iw7hjPunOAP/f6kctxf5Zn7TVwoWuf1NsJYSI4uGWwPR Mfsw== X-Gm-Message-State: AO0yUKXlrN7rXAswfem2pMnCX/oxer94y/Glx93DaEHIX4X4HeoSk4G7 DitvY8O+5l1FP1QzMdbI/1IW1erIVgFrZiAduUwTHotR0t1Smd83WslJesGSdE73NCzZa3r8guw K1q44+J8sSYVAFr31RWpPWwIbptUeQMXeoXE= X-Received: by 2002:a05:6214:1250:b0:56e:a0fb:18ab with SMTP id r16-20020a056214125000b0056ea0fb18abmr43535288qvv.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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230317_160627_059535_65110045 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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;