Searched hist:"9 e46e541" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/nvdimm/test/ |
H A D | nfit_test.h | 9e46e541 Tue May 16 15:14:08 CDT 2023 Arnd Bergmann <arnd@arndb.de> 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>
|