[PATCH] nvdimm: fix some compilation warnings