Re: [git pull] drm for 4.5-rc1

From: Guenter Roeck
Date: Mon Jan 18 2016 - 11:26:17 EST


On Mon, Jan 18, 2016 at 12:35:25PM +0530, Sudip Mukherjee wrote:
> On Sun, Jan 17, 2016 at 09:35:08PM +0000, Dave Airlie wrote:
> >
> >
> > Hi Linus,
> >
> > This is the main drm pull request for 4.5. I don't think I've missed anything too
> > major, I'm mostly back at work now but I'll probably get some sleep in 5 years time.
> >
> > I think it should fix the i915 warning from the audio tree, if not let me
> > know.
> >
> > summary below,
>
> Hi Eric,
> This pull request does not have the patch required to fix the build
> failure for some architectures. Just checked Linus's current tree for
> tilepro allmodconfig and it still fails to build. The error being:
>
> drivers/gpu/drm/vc4/vc4_v3d.c: In function 'vc4_v3d_set_power':
> include/linux/stddef.h:7:14: error: called object is not a function or function pointer
> #define NULL ((void *)0)
> ^
> include/linux/pm.h:776:30: note: in expansion of macro 'NULL'
> #define pm_generic_poweroff NULL
> ^
> drivers/gpu/drm/vc4/vc4_v3d.c:157:10: note: in expansion of macro 'pm_generic_poweroff'
> return pm_generic_poweroff(&vc4->v3d->pdev->dev);
> ^
> include/linux/stddef.h:7:14: error: called object is not a function or function pointer
> #define NULL ((void *)0)
> ^
> include/linux/pm.h:764:28: note: in expansion of macro 'NULL'
> #define pm_generic_resume NULL
> ^
> drivers/gpu/drm/vc4/vc4_v3d.c:159:10: note: in expansion of macro 'pm_generic_resume'
> return pm_generic_resume(&vc4->v3d->pdev->dev);
>
> patch is at:
> https://lkml.org/lkml/2015/12/21/671
>

Or:

https://lkml.org/lkml/2016/1/9/170

which retains the functionality if CONFIG_PM_SLEEP is configured.

Guenter