mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] x86/platform/UV: Mark tsc_check_sync as an init function.
       [not found] <20171023191841.865008281@stormcage.americas.sgi.com>
@ 2017-10-23 19:18 ` mike.travis
  2017-10-24  7:16   ` [tip:x86/timers] " tip-bot for mike.travis@hpe.com
  0 siblings, 1 reply; 2+ messages in thread
From: mike.travis @ 2017-10-23 19:18 UTC (permalink / raw)
  To: Thomas Gleixner, Peter Zijlstra, Ingo Molnar, H. Peter Anvin
  Cc: Bin Gao, Prarit Bhargava, Dimitri Sivanich, Andrew Banman,
	Russ Anderson, linux-kernel, x86

[-- Attachment #1: uv-set-tsc-check-as-init --]
[-- Type: text/plain, Size: 769 bytes --]

Fix build problem:

>> 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

Signed-off-by: Mike Travis <mike.travis@hpe.com>
---
 arch/x86/kernel/apic/x2apic_uv_x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c
+++ linux/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -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;

-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:x86/timers] x86/platform/UV: Mark tsc_check_sync as an init function
  2017-10-23 19:18 ` [PATCH 1/1] x86/platform/UV: Mark tsc_check_sync as an init function mike.travis
@ 2017-10-24  7:16   ` tip-bot for mike.travis@hpe.com
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for mike.travis@hpe.com @ 2017-10-24  7:16 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: prarit, russ.anderson, peterz, andrew.banman, mingo, hpa, tglx,
	linux-kernel, dimitri.sivanich, mike.travis, bin.gao

Commit-ID:  b3270a5210229ee543339d34b74ba527f978c55b
Gitweb:     https://git.kernel.org/tip/b3270a5210229ee543339d34b74ba527f978c55b
Author:     mike.travis@hpe.com <mike.travis@hpe.com>
AuthorDate: Mon, 23 Oct 2017 14:18:42 -0500
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 24 Oct 2017 09:10:51 +0200

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

Fix build problem:

>> 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

Signed-off-by: Mike Travis <mike.travis@hpe.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Dimitri Sivanich <dimitri.sivanich@hpe.com>
Cc: Russ Anderson <russ.anderson@hpe.com>
Cc: Andrew Banman <andrew.banman@hpe.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Bin Gao <bin.gao@linux.intel.com>
Link: https://lkml.kernel.org/r/20171023191841.985614692@stormcage.americas.sgi.com

---
 arch/x86/kernel/apic/x2apic_uv_x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 4408254..5eda48a 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-24  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20171023191841.865008281@stormcage.americas.sgi.com>
2017-10-23 19:18 ` [PATCH 1/1] x86/platform/UV: Mark tsc_check_sync as an init function mike.travis
2017-10-24  7:16   ` [tip:x86/timers] " tip-bot for mike.travis@hpe.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®