projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfe3d8f
)
x86/cpu: Export native_write_cr4() only when CONFIG_LKTDM=m
author
Thomas Gleixner
<tglx@linutronix.de>
Sun, 26 Apr 2020 16:55:15 +0000
(18:55 +0200)
committer
Borislav Petkov
<bp@suse.de>
Sun, 26 Apr 2020 18:16:46 +0000
(20:16 +0200)
Modules have no business poking into this but fixing this is for later.
[ bp: Carve out from an earlier patch. ]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lkml.kernel.org/r/20200421092558.939985695@linutronix.de
arch/x86/kernel/cpu/common.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/common.c
b/arch/x86/kernel/cpu/common.c
index 82042f40fc45a722379813544b0784df05746a22..eab3ebd22927e0518e4317538d57ced15387aedd 100644
(file)
--- a/
arch/x86/kernel/cpu/common.c
+++ b/
arch/x86/kernel/cpu/common.c
@@
-387,7
+387,9
@@
set_register:
bits_missing);
}
}
+#if IS_MODULE(CONFIG_LKDTM)
EXPORT_SYMBOL_GPL(native_write_cr4);
+#endif
void cr4_update_irqsoff(unsigned long set, unsigned long clear)
{