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.
Unified · Split
| @@ -16,11 +16,16 @@ extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn); · 15 unmodified lines | ||
| 16 | 16 | extern int k8_scan_nodes(void); |
| 17 | 17 | |
| 18 | 18 | #ifdef CONFIG_K8_NB |
| 19 | +extern int num_k8_northbridges; | |
| 20 | + | |
| 19 | 21 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
| 20 | 22 | { |
| 21 | 23 | return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL; |
| 22 | 24 | } |
| 25 | + | |
| 23 | 26 | #else |
| 27 | +#define num_k8_northbridges 0 | |
| 28 | + | |
| 24 | 29 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
| 25 | 30 | { |
| 26 | 31 | return NULL; |