]> 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)
commit97d3c8922c974d52e011a571fce24ec26588ba00
treeeecd0a460bcb0e1af35f2003d20856ead14c3f7f
parent5ce1149381ecb5df6d298159e3ea7ce926a5ec58
MIPS: cpu-bugs64: Mark inline functions as __always_inline

Commit 7a0f539ed93c ("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