Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5983411ybf; Thu, 5 Mar 2020 10:44:12 -0800 (PST) X-Google-Smtp-Source: ADFU+vuvZf5LYa1g36MJgmb9DCLdirnixGtdeYNSnq89QED7u9K5ygT8kChAE4yu3KLe3EjtMX5s X-Received: by 2002:a9d:443:: with SMTP id 61mr7128323otc.357.1583433851909; Thu, 05 Mar 2020 10:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583433851; cv=none; d=google.com; s=arc-20160816; b=vx0cPEOSnCx6JdAWO+P7claqMF7O8ef6t69i4s327DCaD9c0RgSi2yxkC9jm+GGLRU QxteBZFadxsmGvgS/2SYLlSJfKoBZDGNS4cp4ALIbTAbrQPBnsNCD7s1V9jAW3jIrO07 HGzc0QBd3Ds3BqAZNOx8y+joFRgebrmO41UP6P5coPUcGEjJKuc8WNPEr2WkU5xtG554 KkPyq0BJrUuUNf53i8kU2sIg/xPCuhxx3FW4KUQD4baEw8AOALOp+EI7ahhixzIBEXCw IOosyq8eqr8cPqq7J052TEAqf5OvR3lsa/rmkclXxUMCVj5xGlg7dRuoeFCIG4IY7gqO IL2g== 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; bh=U7SeKhT0JmjTiIU1281NKJLTWOb6R4/GVu7NnQdQ5y0=; b=y5xdOMf/NmUcrSmezcQpB0R2QMcEdRQFckRm+z0YhqxiKu/v1yaVahAmlv03P1Nt8O EDS9EfdLgaaEh2RwuG2ak8nW8u3gl9Gw05HReIEENU2dIc4QftdfV9mFUfaxy4ioPvol smaVN+GI2qXcMlOIMhoU4Yt2MMe0NjMOhSo5ypxkTPE293igZdRp0gOezw9oW8VbJ2+O 8vPUwtcOart4bkjC/S5QEIg3g+gjreycLAfZIjPIiw0M9lrDy++zgOvAWMaP3lcpy00T IK1e+gHADcvAn4Vkz0G3dTE7e3TtXcT+gpOD0sXrvrWgzM2WcJDLZj9g5eQmwOTVK24O 2LGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j80si3672821oib.144.2020.03.05.10.43.58; Thu, 05 Mar 2020 10:44:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726083AbgCESm6 (ORCPT + 99 others); Thu, 5 Mar 2020 13:42:58 -0500 Received: from foss.arm.com ([217.140.110.172]:52442 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgCESm6 (ORCPT ); Thu, 5 Mar 2020 13:42:58 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30B7830E; Thu, 5 Mar 2020 10:42:57 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 10DE03F6CF; Thu, 5 Mar 2020 10:42:57 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id C241F682F35; Thu, 5 Mar 2020 18:42:55 +0000 (GMT) Date: Thu, 5 Mar 2020 18:42:55 +0000 From: Liviu Dudau To: Vincenzo Frascino Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "James (Qian) Wang" , Mihail Atanassov , Brian Starkey , David Airlie , Daniel Vetter Subject: Re: [PATCH] drm: komeda: Make rt_pm_ops dependent on CONFIG_PM Message-ID: <20200305184255.GH364558@e110455-lin.cambridge.arm.com> References: <20200304145412.33936-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200304145412.33936-1-vincenzo.frascino@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2020 at 02:54:12PM +0000, Vincenzo Frascino wrote: > komeda_rt_pm_suspend() and komeda_rt_pm_resume() are compiled only when > CONFIG_PM is enabled. Having it disabled triggers the following warning > at compile time: > > linux/drivers/gpu/drm/arm/display/komeda/komeda_drv.c:156:12: > warning: ‘komeda_rt_pm_resume’ defined but not used [-Wunused-function] > static int komeda_rt_pm_resume(struct device *dev) > ^~~~~~~~~~~~~~~~~~~ > linux/drivers/gpu/drm/arm/display/komeda/komeda_drv.c:149:12: > warning: ‘komeda_rt_pm_suspend’ defined but not used [-Wunused-function] > static int komeda_rt_pm_suspend(struct device *dev) > > Make komeda_rt_pm_suspend() and komeda_rt_pm_resume() dependent on > CONFIG_PM to address the issue. > > Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Cc: Brian Starkey > Cc: David Airlie > Cc: Daniel Vetter > Signed-off-by: Vincenzo Frascino Acked-by: Liviu Dudau Thanks for the patch, I will push it into drm-misc-fixes tomorrow. Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > index ea5cd1e17304..dd3ae3d88687 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > @@ -146,6 +146,7 @@ static const struct of_device_id komeda_of_match[] = { > > MODULE_DEVICE_TABLE(of, komeda_of_match); > > +#ifdef CONFIG_PM > static int komeda_rt_pm_suspend(struct device *dev) > { > struct komeda_drv *mdrv = dev_get_drvdata(dev); > @@ -159,6 +160,7 @@ static int komeda_rt_pm_resume(struct device *dev) > > return komeda_dev_resume(mdrv->mdev); > } > +#endif /* CONFIG_PM */ > > static int __maybe_unused komeda_pm_suspend(struct device *dev) > { > -- > 2.25.1 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯