linux-stable/arch/m68k/coldfire
Randy Dunlap e6e1e7b19f m68k: coldfire/device.c: only build for MCF_EDMA when h/w macros are defined
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: d7e9d01ac2 ("m68k: add ColdFire mcf5441x eDMA platform support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: lore.kernel.org/r/202203030252.P752DK46-lkp@intel.com
Cc: Angelo Dureghello <angelo@sysam.it>
Cc: Greg Ungerer <gerg@kernel.org>
Cc: Greg Ungerer <gerg@linux-m68k.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Cc: uclinux-dev@uclinux.org
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
2022-03-07 15:20:16 +10:00
..
Makefile m68k: coldfire: use legacy_timer_tick() 2020-10-30 21:57:05 +01:00
amcore.c
cache.c
clk.c m68k: coldfire: return success for clk_enable(NULL) 2021-08-23 08:40:04 +10:00
device.c m68k: coldfire/device.c: only build for MCF_EDMA when h/w macros are defined 2022-03-07 15:20:16 +10:00
dma.c
dma_timer.c
entry.S m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
firebee.c
gpio.c m68k: coldfire: Include the GPIO driver header 2019-09-09 09:32:32 +10:00
head.S
intc-2.c
intc-525x.c
intc-5249.c
intc-5272.c
intc-simr.c m68k: coldfire: fix irq ranges 2021-04-23 15:33:40 +10:00
intc.c
m53xx.c m68k: coldfire: remove private clk_get/clk_put 2021-06-08 17:00:09 +02:00
m54xx.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m520x.c m68k: coldfire: remove private clk_get/clk_put 2021-06-08 17:00:09 +02:00
m523x.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m525x.c m68k/coldfire: change pll var. to clk_pll 2021-07-26 08:41:38 +10:00
m527x.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m528x.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5206.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5249.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5272.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5307.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5407.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5441x.c m68k: m5441x: remove erroneous clock disable 2022-03-07 14:51:12 +10:00
mcf8390.c
nettel.c
pci.c m68k/PCI: Fix a memory leak in an error handling path 2020-05-25 10:32:20 +10:00
pit.c m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
reset.c
sltimers.c m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
stmark2.c m68k: stmark2: update board setup 2021-08-23 08:40:04 +10:00
timers.c m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
vectors.c