Commit 11ad2a73 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'asm-generic-fixes-5.10' of...

Merge tag 'asm-generic-fixes-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic

Pull asm-generic fix from Arnd Bergmann:
 "One small bugfix, fixing a build regression for RISC-V"

* tag 'asm-generic-fixes-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
  asm-generic: mark __{get,put}_user_fn as __always_inline
parents 65b55d4c 0bcd0a2b
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
#ifdef CONFIG_UACCESS_MEMCPY #ifdef CONFIG_UACCESS_MEMCPY
#include <asm/unaligned.h> #include <asm/unaligned.h>
static inline int __get_user_fn(size_t size, const void __user *from, void *to) static __always_inline int
__get_user_fn(size_t size, const void __user *from, void *to)
{ {
BUILD_BUG_ON(!__builtin_constant_p(size)); BUILD_BUG_ON(!__builtin_constant_p(size));
...@@ -37,7 +38,8 @@ static inline int __get_user_fn(size_t size, const void __user *from, void *to) ...@@ -37,7 +38,8 @@ static inline int __get_user_fn(size_t size, const void __user *from, void *to)
} }
#define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k) #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
static inline int __put_user_fn(size_t size, void __user *to, void *from) static __always_inline int
__put_user_fn(size_t size, void __user *to, void *from)
{ {
BUILD_BUG_ON(!__builtin_constant_p(size)); BUILD_BUG_ON(!__builtin_constant_p(size));
......
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