ASoC: dmaengine: Fix missing __user prefix in copy_user callback
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 20:42:08 +0000 (22:42 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 26 Jul 2018 14:48:20 +0000 (15:48 +0100)
commit40d1299f87bf915931970c8e6ea3852acacd1889
treee5eda3d2b2f071ef9e94dfb7c7bfe85046249ea6
parentc889a45d229938a94b50aadb819def8bb11a6a54
ASoC: dmaengine: Fix missing __user prefix in copy_user callback

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: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c