diff mbox series

arm64: init: inline empty stubs

Message ID 1547482975-24059-1-git-send-email-vladimir.murzin@arm.com (mailing list archive)
State New, archived
Headers show
Series arm64: init: inline empty stubs | expand

Commit Message

Vladimir Murzin Jan. 14, 2019, 4:22 p.m. UTC
It looks like compiler is smart enough to eliminate empty __init stubs,
yet inlining stubs is a common and recognisable idiom.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/mm/init.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c
index 7205a90..ab4df62 100644
--- a/arch/arm64/mm/init.c
+++ b/arch/arm64/mm/init.c
@@ -140,11 +140,11 @@  static void __init kexec_reserve_crashkres_pages(void)
 #endif
 }
 #else
-static void __init reserve_crashkernel(void)
+static inline void reserve_crashkernel(void)
 {
 }
 
-static void __init kexec_reserve_crashkres_pages(void)
+static inline void kexec_reserve_crashkres_pages(void)
 {
 }
 #endif /* CONFIG_KEXEC_CORE */
@@ -195,7 +195,7 @@  static void __init reserve_elfcorehdr(void)
 		elfcorehdr_size >> 10, elfcorehdr_addr);
 }
 #else
-static void __init reserve_elfcorehdr(void)
+static inline void reserve_elfcorehdr(void)
 {
 }
 #endif /* CONFIG_CRASH_DUMP */