]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: c2p: Fix link failure on non-inlining
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 27 Sep 2019 09:47:08 +0000 (11:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 4 Nov 2019 09:48:14 +0000 (10:48 +0100)
commit5f82bd002ea5111a568733ad1e80427e9c2c22e3
treea77a6df76753e11ece9927c8a158ad7221245845
parentbffcef43339e08f51acbb0a8ec857379f9b03792
fbdev: c2p: Fix link failure on non-inlining

When the compiler decides not to inline the Chunky-to-Planar core
functions, the build fails with:

    c2p_planar.c:(.text+0xd6): undefined reference to `c2p_unsupported'
    c2p_planar.c:(.text+0x1dc): undefined reference to `c2p_unsupported'
    c2p_iplan2.c:(.text+0xc4): undefined reference to `c2p_unsupported'
    c2p_iplan2.c:(.text+0x150): undefined reference to `c2p_unsupported'

Fix this by marking the functions __always_inline.

While this could be triggered before by manually enabling both
CONFIG_OPTIMIZE_INLINING and CONFIG_CC_OPTIMIZE_FOR_SIZE, it was exposed
in the m68k defconfig by commit bfab67995487eb20 ("compiler: enable
CONFIG_OPTIMIZE_INLINING forcibly").

Fixes: f9797d32f5a303ca ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING")
Reported-by: noreply@ellerman.id.au
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190927094708.11563-1-geert@linux-m68k.org
drivers/video/fbdev/c2p_core.h