public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: duchangbin <changbin.du@huawei.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: remove orphan header file e820.h
Date: Tue, 22 Apr 2025 14:13:43 +0200	[thread overview]
Message-ID: <aAeH969fgOx6R6rw@gmail.com> (raw)
In-Reply-To: <4f2c331fc758402fa662ad5bf4a2293c@huawei.com>


* duchangbin <changbin.du@huawei.com> wrote:

> Hi, Ingo,
> On Tue, Apr 22, 2025 at 08:56:49AM +0200, Ingo Molnar wrote:
> > 
> > * Changbin Du <changbin.du@huawei.com> wrote:
> > 
> > > The header arch/x86/include/uapi/asm/e820.h isn't used by any source file any
> > > more. The e820 related items are defined in arch/x86/include/asm/e820/types.h.
> > > So clean it up.
> > > 
> > > Signed-off-by: Changbin Du <changbin.du@huawei.com>
> > > ---
> > >  arch/x86/include/uapi/asm/e820.h | 82 --------------------------------
> > >  1 file changed, 82 deletions(-)
> > >  delete mode 100644 arch/x86/include/uapi/asm/e820.h
> > 
> > This is part of the specification of the bootloader protocol between 
> > bootloaders and the Linux kernel and thus should not be removed.
> > 
> > The kernel has its internal types that adhere to the same 
> > specification, but that's not grounds to remove this header.
> >
>
> Regarding the e820 definitions used in the boot protocol, the main 
> components involved are 'struct boot_params::e820_table' and the 
> SETUP_E820_EXT node. Both of these utilize the 'struct 
> boot_e820_entry' defined in arch/x86/include/uapi/asm/setup_data.h, 
> which is also part of the UAPI.

True.

> The header arch/x86/include/uapi/asm/e820.h is not referenced by boot 
> protocol definitions. In this scenario, can the header file 
> arch/x86/include/uapi/asm/e820.h be safely removed?

Probably/possibly ...

Thanks,

	Ingo

      reply	other threads:[~2025-04-22 12:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-21  4:14 [PATCH] x86: remove orphan header file e820.h Changbin Du
2025-04-22  6:56 ` Ingo Molnar
2025-04-22  9:26   ` duchangbin
2025-04-22 12:13     ` Ingo Molnar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aAeH969fgOx6R6rw@gmail.com \
    --to=mingo@kernel.org \
    --cc=bp@alien8.de \
    --cc=changbin.du@huawei.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox