From: Arnd Bergmann Date: Fri, 9 Jun 2017 10:38:33 +0000 (+0200) Subject: drm/nouveau: use proper prototype in nouveau_pmops_runtime() definition X-Git-Tag: v4.14-rc1~484^2~17^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5499473c86503bb8e307ff7b554643a99a9478c2;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 7acd1cf..90757af 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -727,7 +727,7 @@ nouveau_pmops_thaw(struct device *dev) } bool -nouveau_pmops_runtime() +nouveau_pmops_runtime(void) { if (nouveau_runtime_pm == -1) return nouveau_is_optimus() || nouveau_is_v1_dsm();