Commit d364319b authored by Thomas Gleixner's avatar Thomas Gleixner Committed by H. Peter Anvin

x86: move mmconfig declarations to header

arch/x86/kernel/mmconf-fam10h_64.c is missing the prototypes, which
are decalred in arch/x86/kernel/setup_64.c. Move the prototypes and
the inline stubs to the appropriate header file.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1beee8dc
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/msr.h> #include <asm/msr.h>
#include <asm/acpi.h> #include <asm/acpi.h>
#include <asm/mmconfig.h>
#include "../pci/pci.h" #include "../pci/pci.h"
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
#include <asm/topology.h> #include <asm/topology.h>
#include <asm/trampoline.h> #include <asm/trampoline.h>
#include <asm/pat.h> #include <asm/pat.h>
#include <asm/mmconfig.h>
#include <mach_apic.h> #include <mach_apic.h>
#ifdef CONFIG_PARAVIRT #ifdef CONFIG_PARAVIRT
...@@ -293,18 +294,6 @@ static void __init parse_setup_data(void) ...@@ -293,18 +294,6 @@ static void __init parse_setup_data(void)
} }
} }
#ifdef CONFIG_PCI_MMCONFIG
extern void __cpuinit fam10h_check_enable_mmcfg(void);
extern void __init check_enable_amd_mmconf_dmi(void);
#else
void __cpuinit fam10h_check_enable_mmcfg(void)
{
}
void __init check_enable_amd_mmconf_dmi(void)
{
}
#endif
/* /*
* setup_arch - architecture-specific boot-time initializations * setup_arch - architecture-specific boot-time initializations
* *
......
#ifndef _ASM_MMCONFIG_H
#define _ASM_MMCONFIG_H
#ifdef CONFIG_PCI_MMCONFIG
extern void __cpuinit fam10h_check_enable_mmcfg(void);
extern void __init check_enable_amd_mmconf_dmi(void);
#else
static inline void fam10h_check_enable_mmcfg(void) { }
static inline void check_enable_amd_mmconf_dmi(void) { }
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment