diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-04 23:14:17 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-08-09 09:34:13 -0400 |
commit | 2419831c375d466fcf41dfe02799e5750c25f765 (patch) | |
tree | 6f66d517835883513c69993b3778e36498319ec0 /drivers/usb/gadget | |
parent | bf19647d8f19e89bdf94eef387cfc3825bb48d7f (diff) |
usb: gadget: u_uac1: add __user annotation
Added __user annotation to fix the following sparse warning.
drivers/usb/gadget/u_uac1.c:194:52: warning: incorrect type in argument 2 (different address spaces)
drivers/usb/gadget/u_uac1.c:194:52: expected void const [noderef] <asn:1>*buf
drivers/usb/gadget/u_uac1.c:194:52: got void *buf
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/u_uac1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_uac1.c b/drivers/usb/gadget/u_uac1.c index c7d460f43390..7a55fea43430 100644 --- a/drivers/usb/gadget/u_uac1.c +++ b/drivers/usb/gadget/u_uac1.c | |||
@@ -191,7 +191,7 @@ try_again: | |||
191 | frames = bytes_to_frames(runtime, count); | 191 | frames = bytes_to_frames(runtime, count); |
192 | old_fs = get_fs(); | 192 | old_fs = get_fs(); |
193 | set_fs(KERNEL_DS); | 193 | set_fs(KERNEL_DS); |
194 | result = snd_pcm_lib_write(snd->substream, buf, frames); | 194 | result = snd_pcm_lib_write(snd->substream, (void __user *)buf, frames); |
195 | if (result != frames) { | 195 | if (result != frames) { |
196 | ERROR(card, "Playback error: %d\n", (int)result); | 196 | ERROR(card, "Playback error: %d\n", (int)result); |
197 | set_fs(old_fs); | 197 | set_fs(old_fs); |