summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-04-24 09:56:53 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-26 14:32:09 -0700
commit401ac15aef2dbc853d78f19b255bdbce0e136f0d (patch)
tree4c3ef03559407a46d80d179356e1273b76163b9d /arch/x86
parent6464a9f78632cdce047062512aeed584e66985c0 (diff)
downloadkernel-crypto-401ac15aef2dbc853d78f19b255bdbce0e136f0d.tar.gz
kernel-crypto-401ac15aef2dbc853d78f19b255bdbce0e136f0d.tar.xz
kernel-crypto-401ac15aef2dbc853d78f19b255bdbce0e136f0d.zip
x86, k8: Fix build error when K8_NB is disabled
commit ade029e2aaacc8965a548b0b0f80c5bee97ffc68 upstream. K8_NB depends on PCI and when the last is disabled (allnoconfig) we fail at the final linking stage due to missing exported num_k8_northbridges. Add a header stub for that. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> LKML-Reference: <20100503183036.GJ26107@aftab> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/k8.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/k8.h b/arch/x86/include/asm/k8.h
index f70e60071fe..af00bd1d208 100644
--- a/arch/x86/include/asm/k8.h
+++ b/arch/x86/include/asm/k8.h
@@ -16,11 +16,16 @@ extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn);
extern int k8_scan_nodes(void);
#ifdef CONFIG_K8_NB
+extern int num_k8_northbridges;
+
static inline struct pci_dev *node_to_k8_nb_misc(int node)
{
return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
}
+
#else
+#define num_k8_northbridges 0
+
static inline struct pci_dev *node_to_k8_nb_misc(int node)
{
return NULL;