Commit b7f89bfe authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

x86/uaccess: Always inline user_access_begin()

If GCC out-of-lines it, the STAC and CLAC are in different fuctions
and objtool gets upset.
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 4fc0f0e9
...@@ -705,7 +705,7 @@ extern struct movsl_mask { ...@@ -705,7 +705,7 @@ extern struct movsl_mask {
* checking before using them, but you have to surround them with the * checking before using them, but you have to surround them with the
* user_access_begin/end() pair. * user_access_begin/end() pair.
*/ */
static __must_check inline bool user_access_begin(const void __user *ptr, size_t len) static __must_check __always_inline bool user_access_begin(const void __user *ptr, size_t len)
{ {
if (unlikely(!access_ok(ptr,len))) if (unlikely(!access_ok(ptr,len)))
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