• Takashi Iwai's avatar
    ASoC: dmaengine: Fix missing __user prefix in copy_user callback · 40d1299f
    Takashi Iwai authored
    It seems that __user prefix was forgotten to be added to
    dmaengine_copy_user callback while we refactored the user-copy PCM
    core.
    
    This patch adds the missing prefix, remove the superfluous cast, and
    add the needed cast (__force is needed for downgrading from user
    pointer to kernel pointer), too.
    
    Spotted by a sparse warning like:
      sound/soc/soc-generic-dmaengine-pcm.c:397:27: warning: incorrect type in initializer (incompatible argument 4 (different address spaces))
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    40d1299f
soc-generic-dmaengine-pcm.c 15.5 KB