mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[POWERPC] fix building without PCI
At least the ide driver calls pcibus_to_node, which is not defined when CONFIG_PCI is disabled. This adds a nop function for the !PCI case. Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
This commit is contained in:
parent
369cf4b940
commit
11faa658c6
1 changed files with 7 additions and 0 deletions
|
@ -32,7 +32,14 @@ static inline int node_to_first_cpu(int node)
|
||||||
int of_node_to_nid(struct device_node *device);
|
int of_node_to_nid(struct device_node *device);
|
||||||
|
|
||||||
struct pci_bus;
|
struct pci_bus;
|
||||||
|
#ifdef CONFIG_PCI
|
||||||
extern int pcibus_to_node(struct pci_bus *bus);
|
extern int pcibus_to_node(struct pci_bus *bus);
|
||||||
|
#else
|
||||||
|
static inline int pcibus_to_node(struct pci_bus *bus)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
|
#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
|
||||||
CPU_MASK_ALL : \
|
CPU_MASK_ALL : \
|
||||||
|
|
Loading…
Reference in a new issue