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

V4L/DVB: v4l2-dev: remove get_unmapped_area

The get_unmapped_area file operation is unused. Remove.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
c29fcff3 d69f2718

-20
-18
drivers/media/video/v4l2-dev.c
··· 236 236 return ret; 237 237 } 238 238 239 - #ifdef CONFIG_MMU 240 - #define v4l2_get_unmapped_area NULL 241 - #else 242 - static unsigned long v4l2_get_unmapped_area(struct file *filp, 243 - unsigned long addr, unsigned long len, unsigned long pgoff, 244 - unsigned long flags) 245 - { 246 - struct video_device *vdev = video_devdata(filp); 247 - 248 - if (!vdev->fops->get_unmapped_area) 249 - return -ENOSYS; 250 - if (!video_is_registered(vdev)) 251 - return -ENODEV; 252 - return vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags); 253 - } 254 - #endif 255 - 256 239 static int v4l2_mmap(struct file *filp, struct vm_area_struct *vm) 257 240 { 258 241 struct video_device *vdev = video_devdata(filp); ··· 292 309 .read = v4l2_read, 293 310 .write = v4l2_write, 294 311 .open = v4l2_open, 295 - .get_unmapped_area = v4l2_get_unmapped_area, 296 312 .mmap = v4l2_mmap, 297 313 .unlocked_ioctl = v4l2_ioctl, 298 314 #ifdef CONFIG_COMPAT
-2
include/media/v4l2-dev.h
··· 41 41 unsigned int (*poll) (struct file *, struct poll_table_struct *); 42 42 long (*ioctl) (struct file *, unsigned int, unsigned long); 43 43 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); 44 - unsigned long (*get_unmapped_area) (struct file *, unsigned long, 45 - unsigned long, unsigned long, unsigned long); 46 44 int (*mmap) (struct file *, struct vm_area_struct *); 47 45 int (*open) (struct file *); 48 46 int (*release) (struct file *);