mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
0420101c07
k8.h uses struct bootnode but does not #include a header file for it, so provide a simple declaration for it. arch/x86/include/asm/k8.h:13: warning: 'struct bootnode' declared inside parameter list arch/x86/include/asm/k8.h:13: warning: its scope is only this definition or declaration, which is probably not what you want Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: David Rientjes <rientjes@google.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> LKML-Reference: <20091028160955.d27ccb16.randy.dunlap@oracle.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
31 lines
739 B
C
31 lines
739 B
C
#ifndef _ASM_X86_K8_H
|
|
#define _ASM_X86_K8_H
|
|
|
|
#include <linux/pci.h>
|
|
|
|
extern struct pci_device_id k8_nb_ids[];
|
|
struct bootnode;
|
|
|
|
extern int early_is_k8_nb(u32 value);
|
|
extern struct pci_dev **k8_northbridges;
|
|
extern int num_k8_northbridges;
|
|
extern int cache_k8_northbridges(void);
|
|
extern void k8_flush_garts(void);
|
|
extern int k8_get_nodes(struct bootnode *nodes);
|
|
extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn);
|
|
extern int k8_scan_nodes(void);
|
|
|
|
#ifdef CONFIG_K8_NB
|
|
static inline struct pci_dev *node_to_k8_nb_misc(int node)
|
|
{
|
|
return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
|
|
}
|
|
#else
|
|
static inline struct pci_dev *node_to_k8_nb_misc(int node)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* _ASM_X86_K8_H */
|