x86/cpu: Export native_write_cr4() only when CONFIG_LKTDM=m
authorThomas Gleixner <tglx@linutronix.de>
Sun, 26 Apr 2020 16:55:15 +0000 (18:55 +0200)
committerBorislav Petkov <bp@suse.de>
Sun, 26 Apr 2020 18:16:46 +0000 (20:16 +0200)
commit21953ee5013d6632bee90ec89f2df59c69050db0
tree66e484a3639268a46d4e7e35276aba5952116f70
parentbfe3d8f6313d1e10806062ba22c5f660dddecbcc
x86/cpu: Export native_write_cr4() only when CONFIG_LKTDM=m

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