summaryrefslogtreecommitdiffstats
path: root/mm/usercopy.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-07-07 13:12:25 +0200
committerTakashi Iwai <tiwai@suse.de>2020-07-07 13:13:12 +0200
commit467fd0e82b6265b8e6cc078a70bd7592574d5c83 (patch)
tree46ed27fc4a94ce40441df886bdc0a1780942be57 /mm/usercopy.c
parent951894cf30f417443d9e0eda33312613c2a7edf6 (diff)
downloadlinux-467fd0e82b6265b8e6cc078a70bd7592574d5c83.tar.gz
linux-467fd0e82b6265b8e6cc078a70bd7592574d5c83.tar.bz2
linux-467fd0e82b6265b8e6cc078a70bd7592574d5c83.zip
ALSA: pcm: Fix build error on m68k and others
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: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/r/20200707111225.26826-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'mm/usercopy.c')
0 files changed, 0 insertions, 0 deletions