libnvdimm: Fix endian conversion issues 
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 9 Aug 2019 07:47:26 +0000 (13:17 +0530)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Sep 2019 17:23:44 +0000 (10:23 -0700)
commit86aa66687442ef45909ff9814b82b4d2bb892294
treec79bb8c499fa10ea06cbc5865ebf6522ce5fcc4a
parentf537669978a7abae29c1d3b489f300e4d8f47005
libnvdimm: Fix endian conversion issues 

nd_label->dpa issue was observed when trying to enable the namespace created
with little-endian kernel on a big-endian kernel. That made me run
`sparse` on the rest of the code and other changes are the result of that.

Fixes: d9b83c756953 ("libnvdimm, btt: rework error clearing")
Fixes: 9dedc73a4658 ("libnvdimm/btt: Fix LBA masking during 'free list' population")
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/20190809074726.27815-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/btt.c
drivers/nvdimm/namespace_devs.c