]> 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)
commitcba2e47abcbd80e3f46f460899290402f98090ec
tree023dc101fde300f6fddb72eae60a5017b643a4c9
parentbf16200689118d19de1b8d2a3c314fc21f5dc7bb
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>
include/linux/pmem.h