diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-07-23 12:14:40 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-23 13:25:38 +0200 |
commit | 47edb65178cb7056c2eea0b6c41a7d8c84547192 (patch) | |
tree | 95da137a20496910117c2474018e2ac798bee6a7 /arch/x86/Makefile | |
parent | b466bdb614823aaaa7188e85516177d2850f4782 (diff) | |
download | linux-47edb65178cb7056c2eea0b6c41a7d8c84547192.tar.gz linux-47edb65178cb7056c2eea0b6c41a7d8c84547192.tar.bz2 linux-47edb65178cb7056c2eea0b6c41a7d8c84547192.zip |
x86/asm/msr: Make wrmsrl() a function
As of cf991de2f614 ("x86/asm/msr: Make wrmsrl_safe() a
function"), wrmsrl_safe is a function, but wrmsrl is still a
macro. The wrmsrl macro performs invalid shifts if the value
argument is 32 bits. This makes it unnecessarily awkward to
write code that puts an unsigned long into an MSR.
To make this work, syscall_init needs tweaking to stop passing
a function pointer to wrmsrl.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Willy Tarreau <w@1wt.eu>
Link: http://lkml.kernel.org/r/690f0c629a1085d054e2d1ef3da073cfb3f7db92.1437678821.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/Makefile')
0 files changed, 0 insertions, 0 deletions