diff options
author | Arnd Bergmann <[email protected]> | 2024-03-22 13:58:25 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-03-26 02:12:16 +0100 |
commit | 9e81e329508576b499b5c47ab106b5fa45ce96d9 (patch) | |
tree | 81b3b51e1c7310ae33066e42cee2beb8f87d689a /lib/memory-notifier-error-inject.c | |
parent | c2ddeb29612f7ca84ed10c6d4f3ac99705135447 (diff) |
irqchip/armada-370-xp: Suppress unused-function warning
armada_370_xp_msi_reenable_percpu() is only defined when CONFIG_PCI_MSI is
enabled, and only called when SMP is enabled.
Without CONFIG_SMP, there are no callers, which results in a build time
warning instead:
drivers/irqchip/irq-armada-370-xp.c:319:13: error: 'armada_370_xp_msi_reenable_percpu' defined but not used [-Werror=unused-function]
319 | static void armada_370_xp_msi_reenable_percpu(void) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark the function as __maybe_unused to avoid adding more complexity
to the #ifdefs.
Fixes: 8ca61cde32c1 ("irqchip/armada-370-xp: Enable MSI affinity configuration")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions