[GIT PULL FOR v5.11] media: v4l2: simplify compat ioctl handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This simplifies compat32 ioctl handling and removes compat_alloc_user_space()
and copy_in_user() from the kernel.

Tested this with the contrib/test/test-media script and both the 64 and 32 bit
versions of v4l2-ctl and v4l2-compliance ('sudo test-media mc' and
'sudo test-media -32 mc').

Arnd, thank you for your work on this!

Regards,

	Hans

The following changes since commit dfe3d19bd092cefb184c6e65b881602c793edd33:

  Merge tag 'v5.10-rc1' into patchwork (2020-10-29 09:03:21 +0100)

are available in the Git repository at:

  git://linuxtv.org/hverkuil/media_tree.git tags/br-compat32

for you to fetch changes up to 2a911f2d907aa6a5d5bd3996ddb6d45479e5d0df:

  media: v4l2: remove remaining compat_ioctl (2020-11-03 09:18:32 +0100)

----------------------------------------------------------------
Tag branch

----------------------------------------------------------------
Arnd Bergmann (8):
      media: v4l2: prepare compat-ioctl rework
      media: v4l2: remove unneeded compat ioctl handlers
      media: v4l2: move v4l2_ext_controls conversion
      media: v4l2: move compat handling for v4l2_buffer
      media: v4l2: allocate v4l2_clip objects early
      media: v4l2: convert v4l2_format compat ioctls
      media: v4l2: remaining compat handlers
      media: v4l2: remove remaining compat_ioctl

 drivers/media/common/saa7146/saa7146_video.c     |    6 +-
 drivers/media/pci/bt8xx/bttv-driver.c            |    8 +-
 drivers/media/pci/saa7134/saa7134-video.c        |   19 +-
 drivers/media/test-drivers/vivid/vivid-vid-cap.c |   18 +-
 drivers/media/test-drivers/vivid/vivid-vid-out.c |   18 +-
 drivers/media/v4l2-core/v4l2-compat-ioctl32.c    | 1772 +++++++++++++++++---------------------------------
 drivers/media/v4l2-core/v4l2-ioctl.c             |  182 ++++--
 include/media/v4l2-ioctl.h                       |   10 +
 include/uapi/linux/videodev2.h                   |    2 +-
 9 files changed, 759 insertions(+), 1276 deletions(-)



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux