]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: u_uac1: add __user annotation
authorJingoo Han <jg1.han@samsung.com>
Mon, 5 Aug 2013 03:14:17 +0000 (12:14 +0900)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Aug 2013 13:34:13 +0000 (16:34 +0300)
commit2419831c375d466fcf41dfe02799e5750c25f765
tree6f66d517835883513c69993b3778e36498319ec0
parentbf19647d8f19e89bdf94eef387cfc3825bb48d7f
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>
drivers/usb/gadget/u_uac1.c