aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-10-26 04:57:47 -0400
committerSean Paul <seanpaul@chromium.org>2016-10-26 15:48:42 -0400
commit329f4c812a699dc6e4ae12aceee324d53ec78107 (patch)
tree5e28b3d3db2105c5b1eacb32bbfdd8c359a67bbf
parentce6e153f414a73a52fa1498489ce4adf20229445 (diff)
drm: mark drm_of_component_match_add dummy inline
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
-rw-r--r--include/drm/drm_of.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h
index d6b4c5587bbe..26a64805cc15 100644
--- a/include/drm/drm_of.h
+++ b/include/drm/drm_of.h
@@ -30,10 +30,11 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
30 return 0; 30 return 0;
31} 31}
32 32
33static void drm_of_component_match_add(struct device *master, 33static inline void
34 struct component_match **matchptr, 34drm_of_component_match_add(struct device *master,
35 int (*compare)(struct device *, void *), 35 struct component_match **matchptr,
36 struct device_node *node) 36 int (*compare)(struct device *, void *),
37 struct device_node *node)
37{ 38{
38} 39}
39 40