* [PATCH] x86/x2apic: Make set_x2apic_phys_mode __init
@ 2018-01-17 3:45 Dou Liyang
2018-02-13 16:58 ` [tip:x86/apic] x86/x2apic: Mark set_x2apic_phys_mode() as __init tip-bot for Dou Liyang
0 siblings, 1 reply; 2+ messages in thread
From: Dou Liyang @ 2018-01-17 3:45 UTC (permalink / raw)
To: linux-kernel
Cc: Dou Liyang, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
Juergen Gross, x86
The early_param() is only called during kernel initialization, So Linux
marks the functions of it with __init macro to save memory.
But it forgot to mark set_x2apic_phys_mode(). So, Make it __init as well.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: x86@kernel.org
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
---
arch/x86/kernel/apic/x2apic_phys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c
index f8d9d69994e6..e2829bf40e4a 100644
--- a/arch/x86/kernel/apic/x2apic_phys.c
+++ b/arch/x86/kernel/apic/x2apic_phys.c
@@ -14,7 +14,7 @@ int x2apic_phys;
static struct apic apic_x2apic_phys;
-static int set_x2apic_phys_mode(char *arg)
+static int __init set_x2apic_phys_mode(char *arg)
{
x2apic_phys = 1;
return 0;
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:x86/apic] x86/x2apic: Mark set_x2apic_phys_mode() as __init
2018-01-17 3:45 [PATCH] x86/x2apic: Make set_x2apic_phys_mode __init Dou Liyang
@ 2018-02-13 16:58 ` tip-bot for Dou Liyang
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Dou Liyang @ 2018-02-13 16:58 UTC (permalink / raw)
To: linux-tip-commits
Cc: torvalds, peterz, douly.fnst, linux-kernel, jgross, hpa, tglx,
mingo
Commit-ID: afed7d172091040f38c75a2927fed170ea11585f
Gitweb: https://git.kernel.org/tip/afed7d172091040f38c75a2927fed170ea11585f
Author: Dou Liyang <douly.fnst@cn.fujitsu.com>
AuthorDate: Wed, 17 Jan 2018 11:45:43 +0800
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 13 Feb 2018 17:24:36 +0100
x86/x2apic: Mark set_x2apic_phys_mode() as __init
set_x2apic_phys_mode() is only called as part of early_param()
initialization - so mark it as __init.
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180117034543.26723-1-douly.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/kernel/apic/x2apic_phys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c
index f8d9d69..e2829bf 100644
--- a/arch/x86/kernel/apic/x2apic_phys.c
+++ b/arch/x86/kernel/apic/x2apic_phys.c
@@ -14,7 +14,7 @@ int x2apic_phys;
static struct apic apic_x2apic_phys;
-static int set_x2apic_phys_mode(char *arg)
+static int __init set_x2apic_phys_mode(char *arg)
{
x2apic_phys = 1;
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-13 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-17 3:45 [PATCH] x86/x2apic: Make set_x2apic_phys_mode __init Dou Liyang
2018-02-13 16:58 ` [tip:x86/apic] x86/x2apic: Mark set_x2apic_phys_mode() as __init tip-bot for Dou Liyang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox