7 Jul
2020
7 Jul
'20
2:13 p.m.
On Tue, 07 Jul 2020 13:12:25 +0200, Takashi Iwai wrote:
The commit 3ad796cbc36a ("ALSA: pcm: Use SG-buffer only when direct DMA is available") introduced a check of the DMA type and this caused a build error on m68k (and possibly some others) due to the lack of dma_is_direct() definition. Since the check is needed only for CONFIG_SND_DMA_SGBUF enablement (i.e. solely x86), use #ifdef instead of IS_ENABLED() for avoiding such a build error.
Fixes: 3ad796cbc36a ("ALSA: pcm: Use SG-buffer only when direct DMA is available") Reported-by: Reported-by: kernel test robot lkp@intel.com
Oops, doubly reported-by. I corrected at merging.
Takashi