Skip to contentSkip to conversation

x86/platform/UV: Mark tsc_check_sync as an init function.

PATCH New [email protected] 2 participants 2 messages Oct 23, 2017 – Oct 24, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 x86/platform/UV: Mark tsc_check_sync as an init function.

Fix build problem:

Quoted 1 line
Quoted 1 line

WARNING: vmlinux.o(.text+0x4223a): Section mismatch in

reference from the function uv_tsc_check_sync() to the function .init.text:uv_early_read_mmr() The function uv_tsc_check_sync() references the function __init uv_early_read_mmr(). This is often because uv_tsc_check_sync lacks a __init

---
 arch/x86/kernel/apic/x2apic_uv_x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/x2apic_uv_x.c +1 -1
@@ -154,7 +154,7 @@ static int __init early_get_pnodeid(void
 	return pnode;
 }
 
-static void uv_tsc_check_sync(void)
+static void __init uv_tsc_check_sync(void)
 {
 	u64 mmr;
 	int sync_state;
#2 lore raw

[tip:x86/timers] x86/platform/UV: Mark tsc_check_sync as an init function

x86/platform/UV: Mark tsc_check_sync as an init function
Commit-ID:  b3270a5210229ee543339d34b74ba527f978c55b
Gitweb:     https://git.kernel.org/tip/b3270a5210229ee543339d34b74ba527f978c55b
Author:     [email protected] <[email protected]>
AuthorDate: Mon, 23 Oct 2017 14:18:42 -0500
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 24 Oct 2017 09:10:51 +0200

x86/platform/UV: Mark tsc_check_sync as an init function

Fix build problem:

Quoted 1 line
Quoted 1 line

WARNING: vmlinux.o(.text+0x4223a): Section mismatch in

reference from the function uv_tsc_check_sync() to the function .init.text:uv_early_read_mmr() The function uv_tsc_check_sync() references the function __init uv_early_read_mmr(). This is often because uv_tsc_check_sync lacks a __init

---
 arch/x86/kernel/apic/x2apic_uv_x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/x2apic_uv_x.c +1 -1
index 4408254..5eda48a 100644
@@ -154,7 +154,7 @@ static int __init early_get_pnodeid(void)
 	return pnode;
 }
 
-static void uv_tsc_check_sync(void)
+static void __init uv_tsc_check_sync(void)
 {
 	u64 mmr;
 	int sync_state;