diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-10 09:49:46 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-10 09:49:46 -0700 |
| commit | 1ac3ca25aa8cbc56fb1392ee7cbb4bd96dea21f8 (patch) | |
| tree | a265e4b50e14688fd3b93922d9fafe76686327f4 /include/linux/pci.h | |
| parent | 2c435ad4dcceb897db38f35dd0c71741f2e93dfe (diff) | |
Avoid warning by using an inline function rather than a macro
for the default "pci_domain_nr()" definition. The inline function
will evaluate the argument.
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 99e1f0e19602..1983191d32c8 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -807,7 +807,7 @@ extern int pci_pci_problems; */ #ifndef CONFIG_PCI_DOMAINS -#define pci_domain_nr(bus) 0 +static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } #endif #endif /* __KERNEL__ */ |
