diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2015-04-03 18:24:46 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-07 19:09:04 -0400 |
commit | fad0bfdb893acfc2444deba6111e700ef013a954 (patch) | |
tree | e50309cab32387a4130ae78ad5034e2e814f54ea /arch/mips/include/asm | |
parent | a49dc4276e07fb94858bcaf46bf99ac3effd026a (diff) |
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 <macro@linux-mips.org>
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9678/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/mips-r2-to-r6-emul.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
84 | 84 | ||
85 | #ifndef CONFIG_MIPSR2_TO_R6_EMULATOR | 85 | #ifndef CONFIG_MIPSR2_TO_R6_EMULATOR |
86 | static int mipsr2_emulation; | 86 | static int mipsr2_emulation; |
87 | static __maybe_unused int mipsr2_decoder(struct pt_regs *regs, u32 inst) { return 0; }; | 87 | static inline int mipsr2_decoder(struct pt_regs *regs, u32 inst) { return 0; }; |
88 | #else | 88 | #else |
89 | /* MIPS R2 Emulator ON/OFF */ | 89 | /* MIPS R2 Emulator ON/OFF */ |
90 | extern int mipsr2_emulation; | 90 | extern int mipsr2_emulation; |