Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp637046ybt; Wed, 1 Jul 2020 06:45:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Cuq16l9R5/x5mqPPlY58kSGlcExIUvMK7RBJ9lIDcJQPYmn+jeaBsBzNSn0j5SBxDG0t X-Received: by 2002:a17:906:f752:: with SMTP id jp18mr22781985ejb.538.1593611124733; Wed, 01 Jul 2020 06:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593611124; cv=none; d=google.com; s=arc-20160816; b=e7g3C1v+RhuUSV1C03+oYWurjgFDGIq2FxoHRI06VwoLuD9pWJ2KU0uf/m0hQRseUZ GGMvLJpTzd+vtYybJv7marJ4vRknTDdLobqVR27EIUlhny5ILu+DkfUiWMrYBpP+hL1V 26BEmJLDK2b25Gn49kqINmK0X4dlnf8NiUZ/Zzkku2PlZMlQ1klr2AtGXRwAhPL1JdMD ReejUdWN+CKl+7WhDtXEeqBlobcsBTEQrwdA5WnxiBntQlnyNRyb/S4E9iMTDbLY85VU LXBiqgnjLxlyoNAmqd/fcBxjfmseri4HZu5dzK5ZuOmxZGIO6UU7E9f3Dp8Y58Lu2Mvx J4hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qTVFyf3I7PgtnVbN3sAjWeRKnO6rm8BUkixfG7q5Q4g=; b=l+M9oKDylZJe8TR7jcYA+gqJSJ9ph7S6b39zAC+eB4n4S+n53Ui/B/qsWs+Hk9TMcI KhLwMYvCIFbC/jEH06IHaEIJuM2yq+0a+fk2b7tEMMSAEdgw/Mqso4CpvzpGPLjJXcLS ifJlkriWpLeZ5MMG45sTPnwNeoAQpA7yTSOXSzspWMEgXDVTjUcn2C0bl2+74pcrz45r RQEhl1+Qq0c7nKglnX8yFyLn75Cgl6/xGEJSWMMvhNPICkgCeculNRiHninQGopdj1ON kjuWXIDC0tw4/OTpazX06MBivWyNNvtk0+ibtuTrZqrpk2+RLMo+qQWRg/eT0qGqtJLS 43qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=C5fqAYsq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob20si3877524ejb.646.2020.07.01.06.44.59; Wed, 01 Jul 2020 06:45:24 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=C5fqAYsq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730792AbgGANou (ORCPT + 99 others); Wed, 1 Jul 2020 09:44:50 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:35544 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbgGANot (ORCPT ); Wed, 1 Jul 2020 09:44:49 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 90710556; Wed, 1 Jul 2020 15:44:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1593611087; bh=jbfeaPWgjpyl4npCPZWd2u+j30R3LLCtbd3TT1XMVz0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C5fqAYsqdnilwzhbLwwgku/jiab3H+cQ6NW6ij3QAkeVVv2udukoexBOkw3d+xzO7 SO5HJu6rDJ9lgGl2GqTzy6Y5lfrcJj+NWdxjAjzLWAW3W+iGlK+/GvMcRmLFVMZOIX v0gt/1b/xViXCQBLiDGcOGtgYFM3ZKQO2kuPetC8= Date: Wed, 1 Jul 2020 16:44:43 +0300 From: Laurent Pinchart To: Vinod Koul Cc: Tobias Klauser , Anurag Kumar Vulisha , Kishon Vijay Abraham I , Michal Simek , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] phy: zynqmp: Fix unused-function compiler warning Message-ID: <20200701134443.GE27013@pendragon.ideasonboard.com> References: <20200701090438.21224-1-tklauser@distanz.ch> <20200701131902.GC27013@pendragon.ideasonboard.com> <20200701133643.GZ2599@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200701133643.GZ2599@vkoul-mobl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On Wed, Jul 01, 2020 at 07:06:43PM +0530, Vinod Koul wrote: > On 01-07-20, 16:19, Laurent Pinchart wrote: > > On Wed, Jul 01, 2020 at 11:04:38AM +0200, Tobias Klauser wrote: > > > This fixes the following compiler warning when building with > > > CONFIG_PM && !CONFIG_PM_SLEEP: > > > > > > drivers/phy/xilinx/phy-zynqmp.c:830:12: warning: ‘xpsgtr_resume’ defined but not used [-Wunused-function] > > > 830 | static int xpsgtr_resume(struct device *dev) > > > | ^~~~~~~~~~~~~ > > > drivers/phy/xilinx/phy-zynqmp.c:819:12: warning: ‘xpsgtr_suspend’ defined but not used [-Wunused-function] > > > 819 | static int xpsgtr_suspend(struct device *dev) > > > | ^~~~~~~~~~~~~~ > > > > Oops :-S Sorry about that. > > > > Reviewed-by: Laurent Pinchart > > > > Vinod or Kishon, can you pick this patch up, or do I need to send a pull > > request ? (It's my first driver in the PHY subsystem so I don't know > > what the usual practices are there) > > patches are welcome :-) > > > > > > Signed-off-by: Tobias Klauser > > > --- > > > drivers/phy/xilinx/phy-zynqmp.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/phy/xilinx/phy-zynqmp.c b/drivers/phy/xilinx/phy-zynqmp.c > > > index 8babee2ce9ec..22a0ae635797 100644 > > > --- a/drivers/phy/xilinx/phy-zynqmp.c > > > +++ b/drivers/phy/xilinx/phy-zynqmp.c > > > @@ -815,7 +815,7 @@ static struct phy *xpsgtr_xlate(struct device *dev, > > > * Power Management > > > */ > > > > > > -#ifdef CONFIG_PM > > > +#ifdef CONFIG_PM_SLEEP > > How about marking it as __maybe_unused instead? I don't mind either, I'll let Tobias decide, but his patch seems fine, is there a drawback in his approach ? If it's just a matter of personal preference, I'd rather not require a v2. -- Regards, Laurent Pinchart