projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
333ed74
)
arm64: debug: mark a function as __init to save some memory
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 31 May 2020 11:00:15 +0000
(13:00 +0200)
committer
Will Deacon
<will@kernel.org>
Thu, 4 Jun 2020 15:21:29 +0000
(16:21 +0100)
'debug_monitors_init()' is only called via 'postcore_initcall'.
It can be marked as __init to save a few bytes of memory.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link:
https://lore.kernel.org/r/20200531110015.598607-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/debug-monitors.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/debug-monitors.c
b/arch/arm64/kernel/debug-monitors.c
index 15e80c876d464ab28ebb6c5ad7e96512151b7267..5df49366e9abe0cde9fa26fc632c988d062b2fca 100644
(file)
--- a/
arch/arm64/kernel/debug-monitors.c
+++ b/
arch/arm64/kernel/debug-monitors.c
@@
-130,7
+130,7
@@
static int clear_os_lock(unsigned int cpu)
return 0;
}
-static int debug_monitors_init(void)
+static int
__init
debug_monitors_init(void)
{
return cpuhp_setup_state(CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING,
"arm64/debug_monitors:starting",