mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 09:04:51 +08:00
e6e1e7b19f
When CONFIG_MCF_EDMA is set (due to COMPILE_TEST, not due to
CONFIG_M5441x), coldfire/device.c has compile errors due to
missing MCFEDMA_* symbols. In the .config file that was provided,
CONFIG_M5206=y, not CONFIG_M5441x, so <asm/m5441xsim.h> is not
included in coldfire/device.c.
Only build the MCF_EDMA code in coldfire/device.c if the MCFEDMA_*
hardware macros are defined.
Fixes these build errors:
../arch/m68k/coldfire/device.c:512:35: error: 'MCFEDMA_BASE' undeclared here (not in a function); did you mean 'MCFDMA_BASE1'?
512 | .start = MCFEDMA_BASE,
../arch/m68k/coldfire/device.c:513:50: error: 'MCFEDMA_SIZE' undeclared here (not in a function)
513 | .end = MCFEDMA_BASE + MCFEDMA_SIZE - 1,
../arch/m68k/coldfire/device.c:517:35: error: 'MCFEDMA_IRQ_INTR0' undeclared here (not in a function)
517 | .start = MCFEDMA_IRQ_INTR0,
../arch/m68k/coldfire/device.c:523:35: error: 'MCFEDMA_IRQ_INTR16' undeclared here (not in a function)
523 | .start = MCFEDMA_IRQ_INTR16,
../arch/m68k/coldfire/device.c:529:35: error: 'MCFEDMA_IRQ_INTR56' undeclared here (not in a function)
529 | .start = MCFEDMA_IRQ_INTR56,
../arch/m68k/coldfire/device.c:535:35: error: 'MCFEDMA_IRQ_ERR' undeclared here (not in a function)
535 | .start = MCFEDMA_IRQ_ERR,
Fixes:
|
||
---|---|---|
.. | ||
amcore.c | ||
cache.c | ||
clk.c | ||
device.c | ||
dma_timer.c | ||
dma.c | ||
entry.S | ||
firebee.c | ||
gpio.c | ||
head.S | ||
intc-2.c | ||
intc-525x.c | ||
intc-5249.c | ||
intc-5272.c | ||
intc-simr.c | ||
intc.c | ||
m53xx.c | ||
m54xx.c | ||
m520x.c | ||
m523x.c | ||
m525x.c | ||
m527x.c | ||
m528x.c | ||
m5206.c | ||
m5249.c | ||
m5272.c | ||
m5307.c | ||
m5407.c | ||
m5441x.c | ||
Makefile | ||
mcf8390.c | ||
nettel.c | ||
pci.c | ||
pit.c | ||
reset.c | ||
sltimers.c | ||
stmark2.c | ||
timers.c | ||
vectors.c |