Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2580680pxb; Tue, 13 Apr 2021 05:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvLAQI5az/MzV5F4TCMSqqYEoaPXSJhP3wOcdo/sg+eFvLjwnRsCzczNWPGek4nwKiMcIH X-Received: by 2002:a50:ff13:: with SMTP id a19mr30837410edu.300.1618317189245; Tue, 13 Apr 2021 05:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618317189; cv=none; d=google.com; s=arc-20160816; b=Xmusyn0usTK4LZ1a7wAs8IxvLuuOrr+0cWEEb0DRIzGlYOh9X+zRsUe2p5JUsX0tHN YKOCx9TrUHehOAaF+hBe6TRpE8nf4DAlTEJX01p4a4087nv7LtoeI2g865CNNFyk7ZaR M4GEP5pN6Qyh5xWg+B8TkoDw3mmzc1pInWnDflbz0HURo3btxbkeEL3Y7+FErQa2gCf8 rQIqlYn5/NafIppsNROkrHFcDSEnuEc3oNcoWzpKInem2j/9zEIBdSgcOcUQL5bD9IzL zaeH7WR8ARPpLzuJTl0LmlHzwdbWwEFF9suBoHMcx+XRpACTq86upnNJrrLHjIr8ZWIR UzSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=mTcgWWhhwR8byPOVz4iOYSaONa0KOjg+CyN8miHlfSU=; b=MRK7IwtOwDpUwlAl9HDcdB/lPPw1PPanT8HQoOAugpdwC/QCySpt12aDOnf214MT6o K8OfCpxHm9lvaLQmC3QkqhcKdKVyxLwQzYMk4gF2QwuIYg/ybHPX1TX6fJHmAt3un7i1 +aR/j/gDppX+USsPRGa5v93F0IXFZ05PK0ipC3PrFcczYlTafl7GWwXOPR5vDiDs5SiD VM+16A9Rzhk3Ol9IVdxBwDJS0cwbutKV0EQV1zYCslmiSkhQbXQeHof6vUlMQMnyBVv/ 7/knFmzhJh8lfEJo5IRcr+ud2jZiHMU5obE3dBIMva2hYKdtdjrhlJhbqpwLT0hF4fy1 hh5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si2484934ejk.321.2021.04.13.05.32.46; Tue, 13 Apr 2021 05:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344473AbhDMDwN (ORCPT + 99 others); Mon, 12 Apr 2021 23:52:13 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:18157 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241484AbhDMDwM (ORCPT ); Mon, 12 Apr 2021 23:52:12 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UVPm0z._1618285894; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVPm0z._1618285894) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 11:51:42 +0800 From: Jiapeng Chong To: mdf@kernel.org Cc: trix@redhat.com, michal.simek@xilinx.com, linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] fpga: xilinx-pr-decoupler: remove useless function Date: Tue, 13 Apr 2021 11:51:34 +0800 Message-Id: <1618285894-111432-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/fpga/xilinx-pr-decoupler.c:32:19: warning: unused function 'xlnx_pr_decouple_read' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 7d69af2..f407cb2 100644 --- a/drivers/fpga/xilinx-pr-decoupler.c +++ b/drivers/fpga/xilinx-pr-decoupler.c @@ -29,12 +29,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; -- 1.8.3.1