uio, lib: Fix CONFIG_ARCH_HAS_UACCESS_MCSAFE compilation
commit522239b445a2de988edb81672963708a6aaf9046
authorDan Williams <dan.j.williams@intel.com>
Wed, 23 May 2018 06:17:03 +0000 (22 23:17 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 23 May 2018 06:17:03 +0000 (22 23:17 -0700)
treeaa51da520dcd8261517c8252bc8a7c68d7cfdb7b
parent8780356ef630aa577fd4daa49e49b79674711fae
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: 8780356ef630 ("x86/asm/memcpy_mcsafe: Define copy_to_iter_mcsafe()")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/linux/uio.h
lib/Kconfig