Re: [PATCH] drm/msm/gpu: Avoid -Wunused-function with !CONFIG_PM_SLEEP

2022-04-11 Thread Nathan Chancellor
On Mon, Apr 11, 2022 at 03:53:01AM +0300, Dmitry Baryshkov wrote: > On 30/03/2022 21:05, Nathan Chancellor wrote: > > When building with CONFIG_PM=y and CONFIG_PM_SLEEP=n (such as ARCH=riscv > > allmodconfig), the following warnings/errors occur: > > > >drivers/gpu/drm/msm/adreno/adreno_device

Re: [PATCH] drm/msm/gpu: Avoid -Wunused-function with !CONFIG_PM_SLEEP

2022-04-10 Thread Dmitry Baryshkov
On 30/03/2022 21:05, Nathan Chancellor wrote: When building with CONFIG_PM=y and CONFIG_PM_SLEEP=n (such as ARCH=riscv allmodconfig), the following warnings/errors occur: drivers/gpu/drm/msm/adreno/adreno_device.c:679:12: error: 'adreno_system_resume' defined but not used [-Werror=unused-fun