testing: nvdimm: add missing prototypes for wrapped functions
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 20:14:08 +0000 (22:14 +0200)
committerDan Williams <dan.j.williams@intel.com>
Wed, 7 Jun 2023 20:30:21 +0000 (13:30 -0700)
commit9e46e541cf19fffbbbd9c6ef393446e7d5ef8c39
tree5d12c5595e8183f2d9fe374043c672897fd6e610
parent2d5153526f929838b0912ded26862840f72745f4
testing: nvdimm: add missing prototypes for wrapped functions

The nvdimm test wraps a number of API functions, but these functions
don't have a prototype in a header because they are all called
by a different name:

drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:74:15: error: no previous prototype for '__wrap_devm_ioremap' [-Werror=missing-prototypes]
   74 | void __iomem *__wrap_devm_ioremap(struct device *dev,
      |               ^~~~~~~~~~~~~~~~~~~
drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:86:7: error: no previous prototype for '__wrap_devm_memremap' [-Werror=missing-prototypes]
   86 | void *__wrap_devm_memremap(struct device *dev, resource_size_t offset,
      |       ^~~~~~~~~~~~~~~~~~~~
...

Add prototypes to avoid the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230516201415.556858-2-arnd@kernel.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit_test.h