[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMzpN2gB1WKruX0UGiO72Si1KHjcC_KcbAOK=-9TAO+cmSpFQA@mail.gmail.com>
Date: Mon, 25 Nov 2024 12:31:05 -0500
From: Brian Gerst <brgerst@...il.com>
To: Borislav Petkov <bp@...en8.de>
Cc: Ingo Molnar <mingo@...nel.org>, Thomas Gleixner <tglx@...utronix.de>, x86-ml <x86@...nel.org>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH] x86/boot: Get rid of linux/init.h include
On Mon, Nov 25, 2024 at 12:09 PM Borislav Petkov <bp@...en8.de> wrote:
>
> On Mon, Nov 25, 2024 at 11:57:37AM -0500, Brian Gerst wrote:
> > How about removing the kernel headers that you don't want from the
> > include path? This is a part of a broader issue where different parts
> > of the kernel need different compiler flags (main kernel, VDSO, boot,
> > etc.) and the current makefile structure doesn't handle that very
> > well.
>
> Right, the idea is to remove *all* include/linux/ headers from the
> decompressor and have the build break if someone includes new ones, forcing
> her/him to properly split such header and use asm/shared for the common stuff.
>
> There are examples in asm/shared/ for that already.
To clarify, what I meant was to remove the -Iinclude/linux flag from
the compiler command line, instead of messing around with ifdefs.
Brian Gerst
Powered by blists - more mailing lists