[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241125170922.GDZ0SvQj8FgK0ej8F3@fat_crate.local>
Date: Mon, 25 Nov 2024 18:09:22 +0100
From: Borislav Petkov <bp@...en8.de>
To: Brian Gerst <brgerst@...il.com>
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 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.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists