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 ECEA6C7618A for ; Mon, 20 Mar 2023 01:43:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjCTBnq (ORCPT ); Sun, 19 Mar 2023 21:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjCTBno (ORCPT ); Sun, 19 Mar 2023 21:43:44 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 171791AC; Sun, 19 Mar 2023 18:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679276623; x=1710812623; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YxjmBq6ikxvqoFB0iL+NlLNlseMTypJf5oOjYf5MAyM=; b=hAjOiGw97clEFJe7JLt46/CtXfYzBuTV6MPANYxiu1ABifPE6n3jXS7/ KVutQpXs+r7gMtna4rkzSiBDrKE0Clw2hdDyZvvtshQZYqS7I4P+CsNFY v+2lNDuWRLkEhVVrikfuEIhdgpCrgVWWi6FQI98b174TW3fOuG8eHNV51 x8LQbVjUhpb/qryJpeIikxBSzyytx1dIGlyt8HsUZ5BjcGA2t3Yk+jAg2 RqGkuiFqsYJ7y23m9b0omhalrtkWe7hASyvL2AfcaNcdt+u2U7rXaHJCT j4f3m49Fufm59VWfM7ejXiObHV8X7DyY9LkuVd6l53sNVj9Xx4Sy0gsty Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="337269056" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="337269056" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2023 18:43:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="804741234" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="804741234" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga004.jf.intel.com with ESMTP; 19 Mar 2023 18:43:39 -0700 Date: Mon, 20 Mar 2023 09:32:16 +0800 From: Xu Yilun To: Tom Rix 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 Subject: Re: [PATCH] fpga: xilinx-pr-decoupler: remove unused xlnx_pr_decouple_read function Message-ID: References: <20230317230617.1673923-1-trix@redhat.com> <7cab9365-6493-2de0-bcef-cd46809056a8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7cab9365-6493-2de0-bcef-cd46809056a8@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-03-18 at 05:59:28 -0700, Tom Rix wrote: > > 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. Applied, thanks. > > 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 > > > >