Skip to content

Commit 3223417

Browse files
sudeep-hollarafaeljw
authored andcommitted
ACPI: FFH: Silence missing prototype warnings
Silence the following warnings when built with W=1: | CC drivers/acpi/acpi_ffh.c | warning: no previous prototype for 'acpi_ffh_address_space_arch_setup' [-Wmissing-prototypes] | int __weak acpi_ffh_address_space_arch_setup(void *handler_ctxt, | ^ | CC drivers/acpi/acpi_ffh.c | warning: no previous prototype for 'acpi_ffh_address_space_arch_handler' [-Wmissing-prototypes] | int __weak acpi_ffh_address_space_arch_handler(acpi_integer *value, | ^ Reported-by: kernel test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6c0eb5b commit 3223417

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/acpi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,10 @@ static inline void acpi_init_pcc(void) { }
14911491

14921492
#ifdef CONFIG_ACPI_FFH
14931493
void acpi_init_ffh(void);
1494+
extern int acpi_ffh_address_space_arch_setup(void *handler_ctxt,
1495+
void **region_ctxt);
1496+
extern int acpi_ffh_address_space_arch_handler(acpi_integer *value,
1497+
void *region_context);
14941498
#else
14951499
static inline void acpi_init_ffh(void) { }
14961500
#endif

0 commit comments

Comments
 (0)