Commit afdc3f58 authored by Dou Liyang's avatar Dou Liyang Committed by Paolo Bonzini

x86/kvm: Make parse_no_xxx __init for kvm

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 the parse_no_kvmapf/stealacc/kvmclock_vsyscall,
So, Make them __init as well.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: rkrcmar@redhat.com
Cc: kvm@vger.kernel.org
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: default avatarDou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent fe2a3027
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
static int kvmapf = 1; static int kvmapf = 1;
static int parse_no_kvmapf(char *arg) static int __init parse_no_kvmapf(char *arg)
{ {
kvmapf = 0; kvmapf = 0;
return 0; return 0;
...@@ -58,7 +58,7 @@ static int parse_no_kvmapf(char *arg) ...@@ -58,7 +58,7 @@ static int parse_no_kvmapf(char *arg)
early_param("no-kvmapf", parse_no_kvmapf); early_param("no-kvmapf", parse_no_kvmapf);
static int steal_acc = 1; static int steal_acc = 1;
static int parse_no_stealacc(char *arg) static int __init parse_no_stealacc(char *arg)
{ {
steal_acc = 0; steal_acc = 0;
return 0; return 0;
...@@ -67,7 +67,7 @@ static int parse_no_stealacc(char *arg) ...@@ -67,7 +67,7 @@ static int parse_no_stealacc(char *arg)
early_param("no-steal-acc", parse_no_stealacc); early_param("no-steal-acc", parse_no_stealacc);
static int kvmclock_vsyscall = 1; static int kvmclock_vsyscall = 1;
static int parse_no_kvmclock_vsyscall(char *arg) static int __init parse_no_kvmclock_vsyscall(char *arg)
{ {
kvmclock_vsyscall = 0; kvmclock_vsyscall = 0;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment