Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: qcom_hidma: hide MSI handler when unused

The newly added MSI support causes a harmless warning when MSI
is disabled:

drivers/dma/qcom/hidma.c:558:20: error: 'hidma_chirq_handler_msi' defined but not used [-Werror=unused-function]

This adds another #ifdef to match that around the users of the function.

Fixes: 1c0e3e82a7fb ("dmaengine: qcom_hidma: add MSI support for interrupts")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Arnd Bergmann and committed by
Vinod Koul
8cc12b26 87ffcea5

+2
+2
drivers/dma/qcom/hidma.c
··· 555 555 return hidma_ll_inthandler(chirq, lldev); 556 556 } 557 557 558 + #ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN 558 559 static irqreturn_t hidma_chirq_handler_msi(int chirq, void *arg) 559 560 { 560 561 struct hidma_lldev **lldevp = arg; ··· 564 563 return hidma_ll_inthandler_msi(chirq, *lldevp, 565 564 1 << (chirq - dmadev->msi_virqbase)); 566 565 } 566 + #endif 567 567 568 568 static ssize_t hidma_show_values(struct device *dev, 569 569 struct device_attribute *attr, char *buf)