mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 00:54:41 +08:00
7811f2e7fd
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:
|
||
---|---|---|
.. | ||
acpi.c | ||
core.c | ||
dw.c | ||
idma32.c | ||
internal.h | ||
Kconfig | ||
Makefile | ||
of.c | ||
pci.c | ||
platform.c | ||
regs.h | ||
rzn1-dmamux.c |