Re: [PATCH v2] staging: fbtft: Disable DMA support if DMA is not available

2015-04-24 Thread Greg Kroah-Hartman
On Fri, Apr 24, 2015 at 09:15:00AM +0200, Geert Uytterhoeven wrote: > On Thu, Apr 23, 2015 at 9:17 PM, Greg Kroah-Hartman > wrote: > > On Thu, Apr 23, 2015 at 08:47:15PM +0200, Geert Uytterhoeven wrote: > >> If NO_DMA=y: > >> > >> drivers/built-in.o: In function `fbtft_framebuffer_alloc': > >>

Re: [PATCH v2] staging: fbtft: Disable DMA support if DMA is not available

2015-04-24 Thread Geert Uytterhoeven
On Thu, Apr 23, 2015 at 9:17 PM, Greg Kroah-Hartman wrote: > On Thu, Apr 23, 2015 at 08:47:15PM +0200, Geert Uytterhoeven wrote: >> If NO_DMA=y: >> >> drivers/built-in.o: In function `fbtft_framebuffer_alloc': >> (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' >> >> As DMA s

Re: [PATCH v2] staging: fbtft: Disable DMA support if DMA is not available

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 08:47:15PM +0200, Geert Uytterhoeven wrote: > If NO_DMA=y: > > drivers/built-in.o: In function `fbtft_framebuffer_alloc': > (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' > > As DMA support is already optional, make it depend on HAS_DMA. > > If !HA

[PATCH v2] staging: fbtft: Disable DMA support if DMA is not available

2015-04-23 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `fbtft_framebuffer_alloc': (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' As DMA support is already optional, make it depend on HAS_DMA. If !HAS_DMA, "dma" will always be false, and the compiler will optimize away the call to d