diff options
author | Guenter Roeck <linux@roeck-us.net> | 2018-03-05 15:22:30 -0800 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-03-05 18:03:20 -0600 |
commit | a6f1086e29e93621a6394b94b8c0e4a4e490f38b (patch) | |
tree | cd05b1932dda3f4f8d2a3b3ff276db909e213cb7 /lib/test-string_helpers.c | |
parent | c37406e05d1e541df40b8b81c4bd40753fcaf414 (diff) |
PCI: Move of_irq_parse_and_map_pci() declaration under OF_IRQ
Since commit 4670d610d592 ("PCI: Move OF-related PCI functions into
PCI core"), sparc:allmodconfig fails to build with the following error.
pcie-cadence-host.c:(.text+0x4c4): undefined reference to `of_irq_parse_and_map_pci'
pcie-cadence-host.c:(.text+0x4c8): undefined reference to `of_irq_parse_and_map_pci'
of_irq_parse_and_map_pci() is now only available if OF_IRQ is enabled.
Make its declaration and its dummy function dependent on OF_IRQ to solve
the problem.
Fixes: 4670d610d592 ("PCI: Move OF-related PCI functions into PCI core")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions