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: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20240112095000.8952-5-tzimmermann@suse.de
This commit is contained in:
parent
785ddc8b6b
commit
103bf75fc9
|
@ -5,6 +5,8 @@
|
|||
#include "../string.h"
|
||||
#include "efi.h"
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
|
||||
#include <linux/numa.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
// 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)
|
||||
{
|
||||
|
|
|
@ -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,5 +1,6 @@
|
|||
// 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"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*/
|
||||
#include "misc.h"
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
#include <asm/pgtable_types.h>
|
||||
#include <asm/sev.h>
|
||||
#include <asm/trapnr.h>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <asm/page.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/bootparam.h>
|
||||
|
||||
struct kimage;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/cc_platform.h>
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
struct boot_params;
|
||||
|
||||
#ifdef CONFIG_X86_MEM_ENCRYPT
|
||||
void __init mem_encrypt_init(void);
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include <asm/insn.h>
|
||||
#include <asm/sev-common.h>
|
||||
#include <asm/bootparam.h>
|
||||
#include <asm/coco.h>
|
||||
|
||||
#define GHCB_PROTOCOL_MIN 1ULL
|
||||
|
@ -22,6 +21,8 @@
|
|||
|
||||
#define VMGEXIT() { asm volatile("rep; vmmcall\n\r"); }
|
||||
|
||||
struct boot_params;
|
||||
|
||||
enum es_result {
|
||||
ES_OK, /* All good */
|
||||
ES_UNSUPPORTED, /* Requested operation not supported */
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#ifndef _ASM_X86_PLATFORM_H
|
||||
#define _ASM_X86_PLATFORM_H
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
|
||||
struct ghcb;
|
||||
struct mpc_bus;
|
||||
struct mpc_cpu;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <linux/vmalloc.h>
|
||||
#include <linux/memblock.h>
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/hardirq.h>
|
||||
#include <asm/nmi.h>
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* and is included directly into both code-bases.
|
||||
*/
|
||||
|
||||
#include <asm/setup_data.h>
|
||||
|
||||
#ifndef __BOOT_COMPRESSED
|
||||
#define error(v) pr_err(v)
|
||||
#define has_cpuflag(f) boot_cpu_has(f)
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <xen/hvc-console.h>
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
#include <asm/io_apic.h>
|
||||
#include <asm/hypervisor.h>
|
||||
#include <asm/e820/api.h>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <xen/hvc-console.h>
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
#include <asm/io_apic.h>
|
||||
#include <asm/hypervisor.h>
|
||||
#include <asm/e820/api.h>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include <linux/screen_info.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/bootparam.h>
|
||||
#include <asm/setup.h>
|
||||
|
||||
#include <xen/interface/xen.h>
|
||||
|
|
Loading…
Reference in New Issue