diff options
author | Toshi Kani <toshi.kani@hpe.com> | 2016-04-12 18:10:52 -0600 |
---|---|---|
committer | Ross Zwisler <ross.zwisler@linux.intel.com> | 2016-04-14 09:01:47 -0600 |
commit | cba2e47abcbd80e3f46f460899290402f98090ec (patch) | |
tree | 023dc101fde300f6fddb72eae60a5017b643a4c9 /drivers/nvdimm | |
parent | bf16200689118d19de1b8d2a3c314fc21f5dc7bb (diff) | |
download | linux-cba2e47abcbd80e3f46f460899290402f98090ec.tar.bz2 |
pmem: fix BUG() error in pmem.h:48 on X86_32
After 'commit fc0c2028135c ("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>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions