]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Add __force to cast in snd_pcm_lib_read/write()
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:00:54 +0000 (23:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jul 2018 06:32:13 +0000 (08:32 +0200)
commitd9710ba4c2a44dd444c9472c4416b659a2c7e3e1
tree1825a1e77dced4a132ac10c442d397c7d9522650
parent01a24d05ac77cacc09603e6a6f10e2b1c25afc18
ALSA: pcm: Add __force to cast in snd_pcm_lib_read/write()

The snd_pcm_lib_read() and snd_pcm_lib_write() inline functions have
the explicit cast from a user pointer to a kernel pointer, but they
lacks of __force prefix.

This fixes sparse warnings like:
  ./include/sound/pcm.h:1093:47: warning: cast removes address space of expression

Fixes: 267c805dd9db ("ALSA: pcm: Direct in-kernel read/write support")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h