Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau: use proper prototype in nouveau_pmops_runtime() definition

There is a prototype for this function in the header, but the function
itself lacks a 'void' in the argument list, causing a harmless warning
when building with 'make W=1':

drivers/gpu/drm/nouveau/nouveau_drm.c: In function 'nouveau_pmops_runtime':
drivers/gpu/drm/nouveau/nouveau_drm.c:730:1: error: old-style function definition [-Werror=old-style-definition]

Fixes: 321f5c5f2c49 ("drm/nouveau: replace multiple open-coded runpm support checks with function")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

authored by

Arnd Bergmann and committed by
Ben Skeggs
5499473c 876ea7be

+1 -1
+1 -1
drivers/gpu/drm/nouveau/nouveau_drm.c
··· 727 727 } 728 728 729 729 bool 730 - nouveau_pmops_runtime() 730 + nouveau_pmops_runtime(void) 731 731 { 732 732 if (nouveau_runtime_pm == -1) 733 733 return nouveau_is_optimus() || nouveau_is_v1_dsm();