linux/drivers/dma/dw
Miquel Raynal 7811f2e7fd dmaengine: dw: dmamux: Fix build without CONFIG_OF
When built without OF support, of_match_node() expands to NULL, which
produces the following output:
>> drivers/dma/dw/rzn1-dmamux.c:105:34: warning: unused variable 'rzn1_dmac_match' [-Wunused-const-variable]
   static const struct of_device_id rzn1_dmac_match[] = {

One way to silence the warning is to enclose the structure definition
with an #ifdef CONFIG_OF/#endif block.

Fixes: 134d9c52fc ("dmaengine: dw: dmamux: Introduce RZN1 DMA router support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220609141455.300879-2-miquel.raynal@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2022-06-10 17:51:21 +05:30
..
acpi.c dmaengine: dw: Register ACPI DMA controller for PCI that has companion 2020-06-16 21:54:47 +05:30
core.c dmaengine dw: Revert "dmaengine: dw: Enable runtime PM" 2021-02-08 17:36:12 +05:30
dw.c dmaengine: dw: Ignore burst setting for memory peripherals 2020-08-17 11:58:31 +05:30
idma32.c dmaengine: dw: Program xBAR hardware for Elkhart Lake 2021-07-14 10:16:30 +05:30
internal.h dmaengine: dw: Program xBAR hardware for Elkhart Lake 2021-07-14 10:16:30 +05:30
Kconfig dmaengine: dw: dmamux: Introduce RZN1 DMA router support 2022-05-19 22:34:51 +05:30
Makefile dmaengine: dw: dmamux: Introduce RZN1 DMA router support 2022-05-19 22:34:51 +05:30
of.c dmaengine: dw: Simplify DT property parser 2021-08-06 19:18:59 +05:30
pci.c dmaengine: dw: switch from 'pci_' to 'dma_' API 2021-10-26 10:54:32 +05:30
platform.c dmaengine: dw: Add RZN1 compatible 2022-05-19 22:34:51 +05:30
regs.h dmaengine: dw: Introduce max burst length hw config 2020-07-27 14:30:55 +05:30
rzn1-dmamux.c dmaengine: dw: dmamux: Fix build without CONFIG_OF 2022-06-10 17:51:21 +05:30