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 D3EC2C61DA4 for ; Sat, 18 Mar 2023 13:00:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjCRNAZ (ORCPT ); Sat, 18 Mar 2023 09:00:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjCRNAW (ORCPT ); Sat, 18 Mar 2023 09:00: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 108D627D54 for ; Sat, 18 Mar 2023 05:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679144376; 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: in-reply-to:in-reply-to:references:references; bh=8tqDexaW1R0cNP270wcvWDX3I0jhzNRDxhsGsGPr4AY=; b=PZyajEWsA2QnGzSNNLzBL38a7xgfVVJo4/96ZTKko7vltgoxL0Ng2DtcPKPadh3MIPhv9v YdsyOI0dr7rey2QIJdSCluSNwsZhCVfqAdt7JdgXNRDTSjkUr6ZTZPt9bqf4yTUuDXMf3h z9gvfV/69d1Epg8LWsNL9p97+HjUjyY= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-450-PwANd8qePLCjTcLWgdvOuw-1; Sat, 18 Mar 2023 08:59:32 -0400 X-MC-Unique: PwANd8qePLCjTcLWgdvOuw-1 Received: by mail-qt1-f197.google.com with SMTP id x5-20020ac86b45000000b003d59e5ef484so4019230qts.15 for ; Sat, 18 Mar 2023 05:59:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679144371; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8tqDexaW1R0cNP270wcvWDX3I0jhzNRDxhsGsGPr4AY=; b=TIJ/wTapbKSoeSySdrXMVucWt0z3oDmxRLEX7u7dbWR8boHDvwQjZsNdTSHTNX3cby kgAsMkhzIPgVtkcW84kl4GjlBQqg3Mp1qPR0tTgZsJLp58b4vVokm5O39akTFTeLctCL fiwqtT7rGHdwxLwE8IIzKCE+VwHT3ywaaCtnaTSiObyOA7vMINx5m7PpRnhiZcrkooSv Tduzf+MtKjAJOUxhv3vp+uGt3JTXdm/NMf6rwo3tETl5dNSCT3/t1Cr7ZoYArLuPKzgh Rpr9iAw28ApUI8bM5cAVWA5cAXXpYXfwJ+H7hJGjfdZhbgwQlEN8/ZMmqfa5LCbcWcFc CbkA== X-Gm-Message-State: AO0yUKX+BeCumcMJcljFzN8vWr7vWzLKIwyv2yiMvPyC1VfMaim7UlKm nYfTJn0vrup1/8t950Ubejr0Y/XX2r5qRSq1AKxz7CZxbHmyppS+pgnk++aMbAyxTNl8oUrr/g5 Z+2VfUE2BqGUT8LnpRxsELsM8/pqiplrx X-Received: by 2002:a05:6214:f06:b0:56e:a96a:2bdc with SMTP id gw6-20020a0562140f0600b0056ea96a2bdcmr46423985qvb.40.1679144371724; Sat, 18 Mar 2023 05:59:31 -0700 (PDT) X-Google-Smtp-Source: AK7set8CTTnO50sIImmBipYldccpFr7gf2qDGHwyz89jzJjdzdbo+0Y13fj80VnaMoC6j8knqIms5Q== X-Received: by 2002:a05:6214:f06:b0:56e:a96a:2bdc with SMTP id gw6-20020a0562140f0600b0056ea96a2bdcmr46423962qvb.40.1679144371464; Sat, 18 Mar 2023 05:59:31 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id u23-20020a37ab17000000b0071f0d0aaef7sm97543qke.80.2023.03.18.05.59.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Mar 2023 05:59:31 -0700 (PDT) Subject: Re: [PATCH] fpga: xilinx-pr-decoupler: remove unused xlnx_pr_decouple_read function To: Xu Yilun Cc: mdf@kernel.org, hao.wu@intel.com, michal.simek@xilinx.com, nathan@kernel.org, ndesaulniers@google.com, linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20230317230617.1673923-1-trix@redhat.com> From: Tom Rix Message-ID: <7cab9365-6493-2de0-bcef-cd46809056a8@redhat.com> Date: Sat, 18 Mar 2023 05:59:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/18/23 2:59 AM, Xu Yilun wrote: > On 2023-03-17 at 19:06:17 -0400, Tom Rix wrote: >> 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. > I prefer to move the description as the first section. If you agree, I > could do it before apply. I have no preference, that is fine. Tom > > Acked-by: Xu Yilun > >> Signed-off-by: Tom Rix >> --- >> 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; >> -- >> 2.27.0 >>