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

fbdev: FB_GOLDFISH should depend on HAS_DMA

If NO_DMA=y:

drivers/built-in.o: In function `goldfish_fb_remove':
drivers/video/goldfishfb.c:301: undefined reference to `dma_free_coherent'
drivers/built-in.o: In function `goldfish_fb_probe':
drivers/video/goldfishfb.c:247: undefined reference to `dma_alloc_coherent'
drivers/video/goldfishfb.c:280: undefined reference to `dma_free_coherent'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
e5ee7305 cac29af6

+1 -1
+1 -1
drivers/video/Kconfig
··· 2199 2199 2200 2200 config FB_GOLDFISH 2201 2201 tristate "Goldfish Framebuffer" 2202 - depends on FB 2202 + depends on FB && HAS_DMA 2203 2203 select FB_CFB_FILLRECT 2204 2204 select FB_CFB_COPYAREA 2205 2205 select FB_CFB_IMAGEBLIT