Skip to content

Commit

Permalink
fix build bug in "x86: add PCI extended config space access for AMD B…
Browse files Browse the repository at this point in the history
…arcelona"
  • Loading branch information
Ingo Molnar committed Jun 2, 2008
1 parent 6fc9286 commit 1a57265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/apic.h>
#include <asm/mmconfig.h>

#include <mach_apic.h>
#include "../setup.h"
Expand Down
4 changes: 4 additions & 0 deletions include/asm-x86/mmconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ static inline void fam10h_check_enable_mmcfg(void) { }
static inline void check_enable_amd_mmconf_dmi(void) { }
#endif

#if defined(CONFIG_SMP) && defined(CONFIG_X86_64)
extern void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c);
#else
static inline void amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c) { }
#endif

#endif

0 comments on commit 1a57265

Please sign in to comment.