Commit 103bf75f authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Borislav Petkov (AMD)
Browse files

x86: Do not include <asm/bootparam.h> in several files



Remove the include statement for <asm/bootparam.h> from several files
that don't require it and limit the exposure of those definitions within
the Linux kernel code.

  [ bp: Massage commit message. ]

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240112095000.8952-5-tzimmermann@suse.de
parent 785ddc8b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@
#include "../string.h"
#include "efi.h"

#include <asm/bootparam.h>

#include <linux/numa.h>

/*
+2 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include "misc.h"

#include <asm/bootparam.h>

static unsigned long fs;
static inline void set_fs(unsigned long seg)
{
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@

#include "misc.h"

#include <asm/bootparam.h>

/**
 * efi_get_type - Given a pointer to boot_params, determine the type of EFI environment.
 *
+1 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include "misc.h"
#include <asm/bootparam.h>
#include <asm/e820/types.h>
#include <asm/processor.h>
#include "pgtable.h"
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
 */
#include "misc.h"

#include <asm/bootparam.h>
#include <asm/pgtable_types.h>
#include <asm/sev.h>
#include <asm/trapnr.h>
Loading