Re: [PATCH] drm/tegra: vic: fix unused-function warnings

2022-04-06 Thread Arnd Bergmann
On Wed, Apr 6, 2022 at 3:21 PM Thierry Reding wrote: > On Wed, Mar 16, 2022 at 07:36:47PM +0100, Arnd Bergmann wrote: > > static const struct dev_pm_ops vic_pm_ops = { > > - SET_RUNTIME_PM_OPS(vic_runtime_suspend, vic_runtime_resume, NULL) > > - SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_su

Re: [PATCH] drm/tegra: vic: fix unused-function warnings

2022-04-06 Thread Thierry Reding
On Wed, Mar 16, 2022 at 07:36:47PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The use of the old-style SET_RUNTIME_PM_OPS() and > SET_SYSTEM_SLEEP_PM_OPS() macros requires function definitions > to be hidden to avoid > > drivers/gpu/drm/tegra/vic.c:326:12: error: 'vic_runtime_suspend'

[PATCH] drm/tegra: vic: fix unused-function warnings

2022-03-16 Thread Arnd Bergmann
From: Arnd Bergmann The use of the old-style SET_RUNTIME_PM_OPS() and SET_SYSTEM_SLEEP_PM_OPS() macros requires function definitions to be hidden to avoid drivers/gpu/drm/tegra/vic.c:326:12: error: 'vic_runtime_suspend' defined but not used [-Werror=unused-function] 326 | static int vic_runti