summaryrefslogtreecommitdiff
path: root/arch/mips/include
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2023-04-21 09:11:27 -0700
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-04-22 23:29:00 +0200
commitf4670a1b30f886e843258ca4a69c442811a90302 (patch)
tree78801ffc425f7733000a012ea68dd7037bac9100 /arch/mips/include
parent95b5baf81001a80a8dd8b35306694db163bcb423 (diff)
downloadlwn-f4670a1b30f886e843258ca4a69c442811a90302.tar.gz
lwn-f4670a1b30f886e843258ca4a69c442811a90302.zip
MIPS: Sink body of check_bugs_early() into its only call site
If check_bugs_early() is not inlined, which a compiler is free to do after commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"), modpost would warn that check_bugs_early(), a non-init function, refers to check_bugs64_early(), which is marked __init. This would not result in any run time issues, as check_bugs_early() is only called from setup_arch(), which is marked __init. To avoid this potential warning, just sink the body of check_bugs_early() into its single call site in setup_arch(). Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/bugs.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/include/asm/bugs.h b/arch/mips/include/asm/bugs.h
index 047e14227c45..653f78f3a685 100644
--- a/arch/mips/include/asm/bugs.h
+++ b/arch/mips/include/asm/bugs.h
@@ -24,12 +24,6 @@ extern void check_bugs64_early(void);
extern void check_bugs32(void);
extern void check_bugs64(void);
-static inline void check_bugs_early(void)
-{
- if (IS_ENABLED(CONFIG_CPU_R4X00_BUGS64))
- check_bugs64_early();
-}
-
static inline void __init check_bugs(void)
{
unsigned int cpu = smp_processor_id();