History

x86, k8: Fix build error when K8_NB is disabled

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.

Borislav Petkov committed 16 years ago

Commit ade029e1 parent f0148711 file · +5 −0Browse files

Unified · Split

arch/x86/include/asm/k8.h+5−0
@@ -16,11 +16,16 @@ extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn); · 15 unmodified lines
1616 extern int k8_scan_nodes(void);
1717
1818 #ifdef CONFIG_K8_NB
19+extern int num_k8_northbridges;
20+
1921 static inline struct pci_dev *node_to_k8_nb_misc(int node)
2022 {
2123 return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
2224 }
25+
2326 #else
27+#define num_k8_northbridges 0
28+
2429 static inline struct pci_dev *node_to_k8_nb_misc(int node)
2530 {
2631 return NULL;