linux/drivers/acpi/nfit
Arnd Bergmann 8f0e8597a7 ACPI: NFIT: Add declaration in a local header
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 'nfit_intel_shutdown_status' [-Werror=missing-prototypes]

Add a declaration in a header that gets included from both
sides to shut up the warning and ensure that the prototypes
actually match.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2023-06-05 19:06:20 +02:00
..
core.c ACPICA: struct acpi_nfit_interleave: Replace 1-element array with flexible array 2023-04-06 20:29:12 +02:00
intel.c nvdimm/region: Move cache management to the region driver 2022-12-02 23:52:32 -08:00
intel.h ACPI: NFIT: Add runtime firmware activate support 2020-07-28 19:29:22 -06:00
Kconfig acpi/nfit: Add support for Intel DSM 1.8 commands 2018-12-04 10:31:11 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mce.c acpi/nfit: rely on mce->misc to determine poison granularity 2022-05-16 11:46:44 -07:00
nfit.h ACPI: NFIT: Add declaration in a local header 2023-06-05 19:06:20 +02:00