]> git.baikalelectronics.ru Git - kernel.git/commit
x86, pmem: use memcpy_mcsafe() for memcpy_from_pmem()
authorDan Williams <dan.j.williams@intel.com>
Tue, 8 Mar 2016 18:30:19 +0000 (10:30 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 29 Mar 2016 00:19:31 +0000 (17:19 -0700)
commitfc0c2028135c7f75fce36b90e44efb8003a9173b
tree8fdb218033326310e36d0de2fa89293a0d72d0b3
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
x86, pmem: use memcpy_mcsafe() for memcpy_from_pmem()

Update the definition of memcpy_from_pmem() to return 0 or a negative
error code.  Implement x86/arch_memcpy_from_pmem() with memcpy_mcsafe().

Cc: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/x86/include/asm/pmem.h
drivers/nvdimm/pmem.c
include/linux/pmem.h