]> git.baikalelectronics.ru Git - kernel.git/commit
pmem: fix BUG() error in pmem.h:48 on X86_32
authorToshi Kani <toshi.kani@hpe.com>
Wed, 13 Apr 2016 00:10:52 +0000 (18:10 -0600)
committerRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 14 Apr 2016 15:01:47 +0000 (09:01 -0600)
commit9667b88a3bd3b236351a826b75956785279a9dc5
tree023dc101fde300f6fddb72eae60a5017b643a4c9
parentd7b9039fd4cd436110bd493aa35e59ca751065ba
pmem: fix BUG() error in pmem.h:48 on X86_32

After 'commit cbe5640472dd ("x86, pmem: use memcpy_mcsafe()
for memcpy_from_pmem()")', probing a PMEM device hits the BUG()
error below on X86_32 kernel.

 kernel BUG at include/linux/pmem.h:48!

memcpy_from_pmem() calls arch_memcpy_from_pmem(), which is
unimplemented since CONFIG_ARCH_HAS_PMEM_API is undefined on
X86_32.

Fix the BUG() error by adding default_memcpy_from_pmem().

Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
include/linux/pmem.h