[Intel-xe] [PATCH] drm/xe: Fix build without CONFIG_PM_SLEEP
Thomas Hellström
thomas.hellstrom at linux.intel.com
Tue Apr 25 09:13:53 UTC 2023
On 4/25/23 11:10, Francois Dugast wrote:
> Build without CONFIG_PM_SLEEP (such as for riscv) was failing due
> to unused xe_pci_runtime_* functions.
>
> Signed-off-by: Francois Dugast <francois.dugast at intel.com>
LGTM.
Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index e512e8b69831..14be0259a222 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -710,7 +710,6 @@ static int xe_pci_resume(struct device *dev)
>
> return 0;
> }
> -#endif
>
> static int xe_pci_runtime_suspend(struct device *dev)
> {
> @@ -768,6 +767,7 @@ static int xe_pci_runtime_idle(struct device *dev)
>
> return 0;
> }
> +#endif
>
> static const struct dev_pm_ops xe_pm_ops = {
> SET_SYSTEM_SLEEP_PM_OPS(xe_pci_suspend, xe_pci_resume)
More information about the Intel-xe
mailing list