Skip to contentSkip to conversation

x86/cpu_entry_area: move percpu_setup_debug_store() to __init section

PATCH New Sergey Senozhatsky 2 participants 4 messages Jan 8, 2019 – Feb 8, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpu_entry_area: move percpu_setup_debug_store() to __init section

WARNING: vmlinux.o(.text.unlikely+0x498d): Section mismatch in reference
from the function percpu_setup_debug_store() to the function .init.text:cea_map_percpu_pages()

---
 arch/x86/mm/cpu_entry_area.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/cpu_entry_area.c +1 -1
index 12d7e7fb4efd..19c6abf9ea31 100644
@@ -52,7 +52,7 @@ cea_map_percpu_pages(void *cea_vaddr, void *ptr, int pages, pgprot_t prot)
 		cea_set_pte(cea_vaddr, per_cpu_ptr_to_phys(ptr), prot);
 }
 
-static void percpu_setup_debug_store(int cpu)
+static void __init percpu_setup_debug_store(int cpu)
 {
 #ifdef CONFIG_CPU_SUP_INTEL
 	int npages;
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 x86/fpu: move init_xstate_size() to __init section

WARNING: vmlinux.o(.text.unlikely+0x1c05): Section mismatch in
reference from the function init_xstate_size() to the function .init.text:get_xsave_size()

WARNING: vmlinux.o(.text.unlikely+0x1c19): Section mismatch in
reference from the function init_xstate_size() to the function .init.text:get_xsaves_size()

---
 arch/x86/kernel/fpu/xstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/fpu/xstate.c +1 -1
index 9cc108456d0b..d7432c2b1051 100644
@@ -669,7 +669,7 @@ static bool is_supported_xstate_size(unsigned int test_xstate_size)
 	return false;
 }
 
-static int init_xstate_size(void)
+static int __init init_xstate_size(void)
 {
 	/* Recompute the context size for enabled features: */
 	unsigned int possible_xstate_size;
Signature · 1 line
2.20.1
#2 lore raw

[tip:x86/cleanups] x86/fpu: Move init_xstate_size() to __init section

x86/fpu: Move init_xstate_size() to __init section
Commit-ID:  653a561bb2fd34e470594eb1bdba3357630e8df7
Gitweb:     https://git.kernel.org/tip/653a561bb2fd34e470594eb1bdba3357630e8df7
Author:     Sergey Senozhatsky <[email protected]>
AuthorDate: Tue, 8 Jan 2019 22:02:25 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Fri, 8 Feb 2019 14:32:34 +0100

x86/fpu: Move init_xstate_size() to __init section

WARNING: vmlinux.o(.text.unlikely+0x1c05): Section mismatch in
reference from the function init_xstate_size() to the function .init.text:get_xsave_size()

WARNING: vmlinux.o(.text.unlikely+0x1c19): Section mismatch in
reference from the function init_xstate_size() to the function .init.text:get_xsaves_size()

---
 arch/x86/kernel/fpu/xstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/fpu/xstate.c +1 -1
index 9cc108456d0b..d7432c2b1051 100644
@@ -669,7 +669,7 @@ static bool is_supported_xstate_size(unsigned int test_xstate_size)
 	return false;
 }
 
-static int init_xstate_size(void)
+static int __init init_xstate_size(void)
 {
 	/* Recompute the context size for enabled features: */
 	unsigned int possible_xstate_size;
#3 lore raw

[tip:x86/cleanups] x86/cpu_entry_area: Move percpu_setup_debug_store() to __init section

In reply to Sergey Senozhatsky
x86/cpu_entry_area: Move percpu_setup_debug_store() to __init section
Commit-ID:  ba2ba356b2c849ec62d5fefa9cd4168163b13211
Gitweb:     https://git.kernel.org/tip/ba2ba356b2c849ec62d5fefa9cd4168163b13211
Author:     Sergey Senozhatsky <[email protected]>
AuthorDate: Tue, 8 Jan 2019 22:02:24 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Fri, 8 Feb 2019 14:32:33 +0100

x86/cpu_entry_area: Move percpu_setup_debug_store() to __init section

WARNING: vmlinux.o(.text.unlikely+0x498d): Section mismatch in reference
from the function percpu_setup_debug_store() to the function .init.text:cea_map_percpu_pages()

---
 arch/x86/mm/cpu_entry_area.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/cpu_entry_area.c +1 -1
index 12d7e7fb4efd..19c6abf9ea31 100644
@@ -52,7 +52,7 @@ cea_map_percpu_pages(void *cea_vaddr, void *ptr, int pages, pgprot_t prot)
 		cea_set_pte(cea_vaddr, per_cpu_ptr_to_phys(ptr), prot);
 }
 
-static void percpu_setup_debug_store(int cpu)
+static void __init percpu_setup_debug_store(int cpu)
 {
 #ifdef CONFIG_CPU_SUP_INTEL
 	int npages;