From: Maciej W. Rozycki Date: Fri, 3 Apr 2015 22:24:46 +0000 (+0100) Subject: MIPS: mips-r2-to-r6-emul.h: Inline empty `mipsr2_decoder' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fad0bfdb893acfc2444deba6111e700ef013a954;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git MIPS: mips-r2-to-r6-emul.h: Inline empty `mipsr2_decoder' Use `static inline' rather than `static __maybe_unused' for `mipsr2_decoder' in the empty case, making inlining explicit where it will happen anyway. Signed-off-by: Maciej W. Rozycki Cc: Leonid Yegoshin Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9678/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/mips-r2-to-r6-emul.h b/arch/mips/include/asm/mips-r2-to-r6-emul.h index 60570f2c3ba2..dd6f1de5b621 100644 --- a/arch/mips/include/asm/mips-r2-to-r6-emul.h +++ b/arch/mips/include/asm/mips-r2-to-r6-emul.h @@ -84,7 +84,7 @@ extern void do_trap_or_bp(struct pt_regs *regs, unsigned int code, #ifndef CONFIG_MIPSR2_TO_R6_EMULATOR static int mipsr2_emulation; -static __maybe_unused int mipsr2_decoder(struct pt_regs *regs, u32 inst) { return 0; }; +static inline int mipsr2_decoder(struct pt_regs *regs, u32 inst) { return 0; }; #else /* MIPS R2 Emulator ON/OFF */ extern int mipsr2_emulation;