From: Bin Meng Date: Tue, 8 Aug 2017 11:35:07 +0000 (-0700) Subject: x86: acpi: Fix build error with certain configuration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=323a6d691079bd15f0a9c0c9607bebadf958cd16;p=project%2Fbcm63xx%2Fu-boot.git x86: acpi: Fix build error with certain configuration When CONFIG_EFI_PARTITION is not set, the following build error is seen in arch/x86/lib/acpi_s3.c: error: expected declaration specifiers or '...' before '*' token static void asmlinkage (*acpi_do_wakeup)(void *vector) = (void*)WAKEUP_BASE; This is actually caused by missing asmlinkage declaration, but with CONFIG_EFI_PARTITION on, the declaration comes from part.h which is included from common.h. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese --- diff --git a/arch/x86/lib/acpi_s3.c b/arch/x86/lib/acpi_s3.c index 3175da828b..182379b439 100644 --- a/arch/x86/lib/acpi_s3.c +++ b/arch/x86/lib/acpi_s3.c @@ -8,6 +8,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR;