Re: [PATCH] x86: make setup.c build again
From: Borislav Petkov
Date: Wed Sep 01 2021 - 03:32:39 EST
On Wed, Sep 01, 2021 at 09:12:32AM +0200, Christoph Hellwig wrote:
> Add a <linux/acpi.h> include to setup.c to ensure it compiles without
> any config-dependent implicit includes of that header.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
> arch/x86/kernel/setup.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
> index 63b20536c8d23..6edec9a28293e 100644
> --- a/arch/x86/kernel/setup.c
> +++ b/arch/x86/kernel/setup.c
> @@ -22,6 +22,7 @@
> #include <linux/usb/xhci-dbgp.h>
> #include <linux/static_call.h>
> #include <linux/swiotlb.h>
> +#include <linux/acpi.h>
>
> #include <uapi/linux/mount.h>
>
> --
There's an identical fix
https://lkml.kernel.org/r/20210901021510.1561219-1-nathan@xxxxxxxxxx
which explains why it happens but I'm fine with whichever one Linus
picks up.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette