Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (3667b): cpia2: fix function prototype

Fix address space warning (from sparse):
drivers/media/video/cpia2/cpia2_core.c:2355:6: error: symbol 'cpia2_read' redeclared with different type (originally declared at drivers/media/video/cpia2/cpia2.h:458) - incompatible argument 2 (different address spaces)

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Randy Dunlap and committed by
Mauro Carvalho Chehab
fb9c280d 07151724

+1 -1
+1 -1
drivers/media/video/cpia2/cpia2.h
··· 456 456 int cpia2_allocate_buffers(struct camera_data *cam); 457 457 void cpia2_free_buffers(struct camera_data *cam); 458 458 long cpia2_read(struct camera_data *cam, 459 - char *buf, unsigned long count, int noblock); 459 + char __user *buf, unsigned long count, int noblock); 460 460 unsigned int cpia2_poll(struct camera_data *cam, 461 461 struct file *filp, poll_table *wait); 462 462 int cpia2_remap_buffer(struct camera_data *cam, struct vm_area_struct *vma);