]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] videobuf2-vmalloc: fix sparse warning
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 13 Dec 2014 11:52:54 +0000 (08:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 12:41:43 +0000 (10:41 -0200)
commit7c424dd14fcf4c2905778ecd3f1ad10c5a097b5b
tree354ca9dcd7067971644b4bfd38fdaca439cae14e
parentd832672f2038d7b36dc08636468cbbed4afe625b
[media] videobuf2-vmalloc: fix sparse warning

Fix this warning:

drivers/media/v4l2-core/videobuf2-vmalloc.c:98:28: warning: incorrect type in assignment (different address spaces)
drivers/media/v4l2-core/videobuf2-vmalloc.c:158:28: warning: incorrect type in argument 1 (different address spaces)

The warning is correct, but we have no other choice here to forcibly cast.
At least it is now explicit that such a cast is needed.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-vmalloc.c