libnvdimm: move poison list functions to a new 'badrange' file
authorDave Jiang <dave.jiang@intel.com>
Wed, 23 Aug 2017 19:48:26 +0000 (12:48 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 2 Nov 2017 17:42:30 +0000 (10:42 -0700)
commitaa9ad44a42b4cf4387f8ecddaf8e51707fdcda5a
tree3d4e9398d0c07cf1fac26da1d1d540697145ef3a
parent11e142701609546632ba1fda586252d391026a3f
libnvdimm: move poison list functions to a new 'badrange' file

nfit_test needs to use the poison list manipulation code as well. Make
it more generic and in the process rename poison to badrange, and move
all the related helpers to a new file.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
[vishal: Add badrange.o to nfit_test's Kbuild]
[vishal: add a missed include in bus.c for the new badrange functions]
[vishal: rename all instances of 'be' to 'bre']
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/mce.c
drivers/nvdimm/Makefile
drivers/nvdimm/badrange.c [new file with mode: 0644]
drivers/nvdimm/bus.c
drivers/nvdimm/core.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/nd.h
include/linux/libnvdimm.h
tools/testing/nvdimm/Kbuild