Skip to content

Commit 528d06d

Browse files
Laurent Pinchartairlied
authored andcommitted
drm: of: Fix linking when CONFIG_OF is not set
The new helper drm_of_lvds_get_dual_link_pixel_order() introduced in commit 6529007 has a fallback stub when CONFIG_OF is not set, but the stub is declared in drm_of.h without a static inline. This causes multiple definitions of the function to be linked when the CONFIG_OF option isn't set. Fix it by making the stub static inline. Fixes: 6529007 ("drm: of: Add drm_of_lvds_get_dual_link_pixel_order") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191219103703.8547-1-laurent.pinchart+renesas@ideasonboard.com
1 parent f5c547e commit 528d06d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎include/drm/drm_of.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ static inline int drm_of_find_panel_or_bridge(const struct device_node *np,
9292
return -EINVAL;
9393
}
9494

95-
int drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1,
96-
const struct device_node *port2)
95+
static inline int
96+
drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1,
97+
const struct device_node *port2)
9798
{
9899
return -EINVAL;
99100
}

0 commit comments

Comments
 (0)