Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6652852ybf; Fri, 6 Mar 2020 01:53:37 -0800 (PST) X-Google-Smtp-Source: ADFU+vs4hthjR2iTOarUEClRMdmfgR6RyRYwAJfYB8YbJgqBT5RmsD5Ri8X/1mdxG82U2G/6AhIG X-Received: by 2002:aca:1b09:: with SMTP id b9mr1985804oib.170.1583488416842; Fri, 06 Mar 2020 01:53:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583488416; cv=none; d=google.com; s=arc-20160816; b=ashtEGy816GbSphB+BUOQrFIjxd0/NRLFq1MG6Yahm2zOk4o2k8Cjn69wWGBa5mW6z +729oLxopeapL8ssWhhYuOHNhNHJszp3jvbKzUbrnlHIe+gFX3OkiNvx6bIDdylAS5kO 3dlYCMwlSywYAsaP3hxxMchKez/MMzyHnWI+uGiK7RbsB2qwR4dsIGLUxpQFDLi0W2gQ vDAk2LduLXJOo59phYNavvv/cs5L3E/MEUQtcqOPIsHIv7JzZ7ux0LDO6FPiWJWC9IEu K/wiYRxeMJkEGv7A74XEI1UDtYJ4tQzMpv6g+tPNsytrhIIcaUPviPqryjxlETKHOdlt mOmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=jedK5Nc1+S9R5VEj+ekMmuGg0dIpiuSmcgR2zqEqMCY=; b=eQUTh3K/IveHJOy9+lhlymRvvV+Slct5UeDN/nbiQ+3Expesl4t9ADCkGYvN2arj3E 6mhyDPx7hvmlFZcMDVpb6io+JJ0MasSPuHechepKjaf+PT0x5vnrDeYPFdb3m4bIQi6R BqXuUHEPIHl+P13nCk2u4w+/ieTKDltnwxmXY64Tz/KrquzqaM01Bjg9mp2t3NYfNchq maDFv9Eq9aUz4W3Q31VqOHhG5GIy7wmxl52vXKaFL+Qjyymsynj2xhdJ7SDh7YnpooLI 71DY4dYs5XAW6fiT6bWMtREaTv1Hi1/Sk7mZ3aW/0LoN5Lhaw68VizSGZu8bbVMSmzFA DV3A== 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 e7si1179810oti.301.2020.03.06.01.53.23; Fri, 06 Mar 2020 01:53:36 -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 S1726257AbgCFJwG (ORCPT + 99 others); Fri, 6 Mar 2020 04:52:06 -0500 Received: from foss.arm.com ([217.140.110.172]:58704 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgCFJwF (ORCPT ); Fri, 6 Mar 2020 04:52:05 -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 0FAB331B; Fri, 6 Mar 2020 01:52:05 -0800 (PST) Received: from [192.168.1.161] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 693DB3F6C4; Fri, 6 Mar 2020 01:52:03 -0800 (PST) Subject: Re: [PATCH] drm: komeda: Make rt_pm_ops dependent on CONFIG_PM To: Liviu Dudau Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "James (Qian) Wang" , Mihail Atanassov , Brian Starkey , David Airlie , Daniel Vetter References: <20200304145412.33936-1-vincenzo.frascino@arm.com> <20200305184255.GH364558@e110455-lin.cambridge.arm.com> From: Vincenzo Frascino Message-ID: Date: Fri, 6 Mar 2020 09:52:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200305184255.GH364558@e110455-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liviu, On 3/5/20 6:42 PM, Liviu Dudau wrote: > 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. > Thank you! > 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 >> > -- Regards, Vincenzo