]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: cpu-bugs64: Mark inline functions as __always_inline
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 27 Sep 2019 05:33:39 +0000 (13:33 +0800)
committerPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 19:59:59 +0000 (12:59 -0700)
commit2cfcede0d417c3f1624615b5136fc8dacb6f7c5f
treeeecd0a460bcb0e1af35f2003d20856ead14c3f7f
parente6cfd7f19ccb7afe2fdf37c51fcbc6540dad0967
MIPS: cpu-bugs64: Mark inline functions as __always_inline

Commit bfab67995487 ("compiler: enable CONFIG_OPTIMIZE_INLINING
forcibly") allows compiler to uninline functions marked as 'inline'.
Leading to section mismatch in this case.

Since we're using const variables to pass assembly flags, 'inline's
can't be dropped. So we simply mark them as __always_inline.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org
[paul.burton@mips.com:
  - Annotate these functions with __init, even if it only serves to
    inform human readers when the code can be used.
  - Drop the __always_inline from check_daddi() & check_daddiu() which
    don't use arguments as immediates in inline asm.
  - Rewrap the commit message.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
arch/mips/kernel/cpu-bugs64.c