From: Chris Wilson Date: Wed, 8 Apr 2020 21:24:07 +0000 (+0100) Subject: drm: Don't return 0 from a void drm_fbdev_generic_setup X-Git-Tag: v5.15~303^2~28^2~3007 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e334c1d89d2e9d367717fbf6008b046c445a1c6;p=platform%2Fkernel%2Flinux-starfive.git drm: Don't return 0 from a void drm_fbdev_generic_setup drm_fbdev_generic_setup() was changed to be a void return, but the stub was left returning 0. ./include/drm/drm_fb_helper.h: In function ‘drm_fbdev_generic_setup’: ./include/drm/drm_fb_helper.h:450:9: warning: ‘return’ with a value, in function returning void [-Wreturn-type] ./include/drm/drm_fb_helper.h:448:1: note: declared here 448 | drm_fbdev_generic_setup(struct drm_device *dev, unsigned int preferred_bpp) Fixes: 1aed9509b29a ("drm/fb-helper: Remove return value from drm_fbdev_generic_setup()") Signed-off-by: Chris Wilson Cc: Thomas Zimmermann Cc: Sam Ravnborg Reviewed-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/20200408212407.4309-1-chris@chris-wilson.co.uk --- diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index fb037be..306aa3a 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h @@ -447,7 +447,6 @@ static inline void drm_fb_helper_output_poll_changed(struct drm_device *dev) static inline void drm_fbdev_generic_setup(struct drm_device *dev, unsigned int preferred_bpp) { - return 0; } #endif