testing: nvdimm: iomap: make __nfit_test_ioremap a macro
authorMichal Suchanek <msuchanek@suse.de>
Fri, 29 Apr 2022 13:40:39 +0000 (15:40 +0200)
committerDan Williams <dan.j.williams@intel.com>
Fri, 29 Apr 2022 17:59:39 +0000 (10:59 -0700)
commitdccfbc73a9ddd2c7232696f563c39d0ca09ae905
tree85ad695fe76ec2188dc41717e4b6a2f52d00b941
parentbb7bf697fed58eae9d3445944e457ab0de4da54f
testing: nvdimm: iomap: make __nfit_test_ioremap a macro

The ioremap passed as argument to __nfit_test_ioremap can be a macro so
it cannot be passed as function argument. Make __nfit_test_ioremap into
a macro so that ioremap can be passed as untyped macro argument.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Fixes: 6bc756193ff6 ("tools/testing/nvdimm: libnvdimm unit test infrastructure")
Link: https://lore.kernel.org/r/20220429134039.18252-1-msuchanek@suse.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/iomap.c