]> git.baikalelectronics.ru Git - kernel.git/commit
drm: of: Fix linking when CONFIG_OF is not set
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 19 Dec 2019 10:37:03 +0000 (12:37 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Jan 2020 00:40:58 +0000 (10:40 +1000)
commit19c449edec3d31a27d71a27a1e2be709c7aed133
tree905e2d75f03453d09b75d792a9a474217ec70255
parent7baceaff793574cd708c8c8efb967c2f01d2b9e7
drm: of: Fix linking when CONFIG_OF is not set

The new helper drm_of_lvds_get_dual_link_pixel_order() introduced in
commit d8c664e0d525 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: d8c664e0d525 ("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
include/drm/drm_of.h