mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 13:11:14 +07:00
uio, lib: Fix CONFIG_ARCH_HAS_UACCESS_MCSAFE compilation
Add a common Kconfig CONFIG_ARCH_HAS_UACCESS_MCSAFE that archs can
optionally select, and fixup the declaration of _copy_to_iter_mcsafe().
Fixes: 8780356ef6
("x86/asm/memcpy_mcsafe: Define copy_to_iter_mcsafe()")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
8780356ef6
commit
522239b445
@ -155,7 +155,7 @@ size_t _copy_from_iter_flushcache(void *addr, size_t bytes, struct iov_iter *i);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_HAS_UACCESS_MCSAFE
|
#ifdef CONFIG_ARCH_HAS_UACCESS_MCSAFE
|
||||||
size_t _copy_to_iter_mcsafe(void *addr, size_t bytes, struct iov_iter *i);
|
size_t _copy_to_iter_mcsafe(const void *addr, size_t bytes, struct iov_iter *i);
|
||||||
#else
|
#else
|
||||||
#define _copy_to_iter_mcsafe _copy_to_iter
|
#define _copy_to_iter_mcsafe _copy_to_iter
|
||||||
#endif
|
#endif
|
||||||
|
@ -586,6 +586,9 @@ config ARCH_HAS_PMEM_API
|
|||||||
config ARCH_HAS_UACCESS_FLUSHCACHE
|
config ARCH_HAS_UACCESS_FLUSHCACHE
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config ARCH_HAS_UACCESS_MCSAFE
|
||||||
|
bool
|
||||||
|
|
||||||
config STACKDEPOT
|
config STACKDEPOT
|
||||||
bool
|
bool
|
||||||
select STACKTRACE
|
select STACKTRACE
|
||||||
|
Loading…
Reference in New Issue
Block a user