Skip to content

Commit 329f4c8

Browse files
arndbatseanpaul
authored andcommitted
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: 97ac0e4 ("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
1 parent ce6e153 commit 329f4c8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎include/drm/drm_of.h‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
3030
return 0;
3131
}
3232

33-
static void drm_of_component_match_add(struct device *master,
34-
struct component_match **matchptr,
35-
int (*compare)(struct device *, void *),
36-
struct device_node *node)
33+
static inline void
34+
drm_of_component_match_add(struct device *master,
35+
struct component_match **matchptr,
36+
int (*compare)(struct device *, void *),
37+
struct device_node *node)
3738
{
3839
}
3940

0 commit comments

Comments
 (0)