drm: mark drm_of_component_match_add dummy inline
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Oct 2016 08:57:47 +0000 (10:57 +0200)
committerSean Paul <seanpaul@chromium.org>
Wed, 26 Oct 2016 19:48:42 +0000 (15:48 -0400)
The newly added drm_of_component_match_add helper is defined as
'static' in a header when CONFIG_OF is disabled, causing a warning
each time the header is included:

In file included from /git/arm-soc/drivers/gpu/drm/bridge/dw-hdmi.c:23:0:
include/drm/drm_of.h:33:13: error: 'drm_of_component_match_add' defined but not used [-Werror=unused-function]

This marks it 'inline' like the other such helpers in this file.

Fixes: 97ac0e47aed5 ("drm: convert DT component matching to component_match_add_release()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20161026085759.3875472-1-arnd@arndb.de
include/drm/drm_of.h

index d6b4c5587bbead7f5d64a41a78d8d7fbf5d09a45..26a64805cc15eefb2958478bc2831fa43cbc8684 100644 (file)
@@ -30,10 +30,11 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
        return 0;
 }
 
-static void drm_of_component_match_add(struct device *master,
-                                      struct component_match **matchptr,
-                                      int (*compare)(struct device *, void *),
-                                      struct device_node *node)
+static inline void
+drm_of_component_match_add(struct device *master,
+                          struct component_match **matchptr,
+                          int (*compare)(struct device *, void *),
+                          struct device_node *node)
 {
 }