irqchip/gicv3: Add a iort_pmsi_get_dev_id() prototype
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 20:05:08 +0000 (22:05 +0200)
committerMarc Zyngier <maz@kernel.org>
Sat, 17 Jun 2023 06:21:24 +0000 (07:21 +0100)
commit415e84294798d1cb041c902168393054cc4ad211
tree0809730170d98eed5e807fe8ad0e50c783ec942b
parent5b7e5676209120814dbb9fec8bc3769f0f7a7958
irqchip/gicv3: Add a iort_pmsi_get_dev_id() prototype

iort_pmsi_get_dev_id() has a __weak definition in the driver, and
an override in arm64 specific code, but the declaration is conditional
and not always seen when the copy in the driver gets built:

drivers/irqchip/irq-gic-v3-its-platform-msi.c:41:12: error: no previous prototype for 'iort_pmsi_get_dev_id' [-Werror=missing-prototypes]

Move the existing declaration out of the #ifdef block to ensure
it can be seen in all configurations.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230516200516.554663-5-arnd@kernel.org
include/linux/acpi_iort.h