Skip to content

Commit 988d7a1

Browse files
ilkka-koskinenrafaeljw
authored andcommitted
ACPI: AGDI: Fix missing prototype warning for acpi_agdi_init()
When building with W=1, we get the following warning: drivers/acpi/arm64/agdi.c:88:13: warning: no previous prototype for ‘acpi_agdi_init’ [-Wmissing-prototypes] void __init acpi_agdi_init(void) Include AGDI driver's header file to pull in the prototype definition for acpi_agdi_init() to get rid of the compiler warning Fixes: a2a591f ("ACPI: AGDI: Add driver for Arm Generic Diagnostic Dump and Reset device") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent db2d169 commit 988d7a1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/acpi/arm64/agdi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define pr_fmt(fmt) "ACPI: AGDI: " fmt
1010

1111
#include <linux/acpi.h>
12+
#include <linux/acpi_agdi.h>
1213
#include <linux/arm_sdei.h>
1314
#include <linux/io.h>
1415
#include <linux/kernel.h>

0 commit comments

Comments
 (0)