]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/fb-helper: Fix sparse warnings
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Sep 2016 13:33:44 +0000 (16:33 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Sep 2016 14:45:15 +0000 (16:45 +0200)
drm/drm_fb_helper.c:2306:12: warning: symbol 'drm_fb_helper_modinit' was not declared. Should it be static?

While at it, move the lefover static inline to the right place.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474292035-15695-4-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_crtc_helper_internal.h
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h

index 4e6b57ae7188e34b86e7dc08d168249308b57b34..28295e5d0d9eaa0c5eddba195cc1c4b3d16fab0f 100644 (file)
 #include <drm/drm_dp_helper.h>
 
 /* drm_fb_helper.c */
+#ifdef CONFIG_DRM_FBDEV_EMULATION
 int drm_fb_helper_modinit(void);
+#else
+static inline int drm_fb_helper_modinit(void)
+{
+       return 0;
+}
+#endif
 
 /* drm_dp_aux_dev.c */
 #ifdef CONFIG_DRM_DP_AUX_CHARDEV
index c4d350086def84372c30aa44e7990d0e58be5e66..5e830281bebdba810580a307d9c3c50d7d216151 100644 (file)
@@ -41,6 +41,8 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 
+#include "drm_crtc_helper_internal.h"
+
 static bool drm_fbdev_emulation = true;
 module_param_named(fbdev_emulation, drm_fbdev_emulation, bool, 0600);
 MODULE_PARM_DESC(fbdev_emulation,
index 797fb5f80c45dcd572a0075431c03cb5e173905d..e19458dd1a43d53b0aad1f4b0db10890d2792db7 100644 (file)
@@ -287,11 +287,6 @@ int drm_fb_helper_add_one_connector(struct drm_fb_helper *fb_helper, struct drm_
 int drm_fb_helper_remove_one_connector(struct drm_fb_helper *fb_helper,
                                       struct drm_connector *connector);
 #else
-static inline int drm_fb_helper_modinit(void)
-{
-       return 0;
-}
-
 static inline void drm_fb_helper_prepare(struct drm_device *dev,
                                        struct drm_fb_helper *helper,
                                        const struct drm_fb_helper_funcs *funcs)