[PATCH 3/3] libnvdimm: mark 'security_show' static again

2023-05-16 Thread Arnd Bergmann
From: Arnd Bergmann The security_show() function was made global and __weak at some point to allow overriding it. The override was removed later, but it remains global, which causes a warning about the missing declaration: drivers/nvdimm/dimm_devs.c:352:9: error: no previous prototype for 'secu

[PATCH 2/3] testing: nvdimm: add missing prototypes for wrapped functions

2023-05-16 Thread Arnd Bergmann
From: Arnd Bergmann 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' [-Wer

[PATCH 1/3] acpi: nfit: add declaration in a local header

2023-05-16 Thread Arnd Bergmann
From: Arnd Bergmann The nfit_intel_shutdown_status() function has a __weak defintion in nfit.c and an override in acpi_nfit_test.c for testing purposes. This works without an extern declaration, but causes a W=1 build warning: drivers/acpi/nfit/core.c:1717:13: error: no previous prototype for '