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

 



VIDIOC_RESERVED was removed in Linux 4.19.

commit ea8532daee31bc72abfbc9ca7a43cbec0f6c05af
Author: Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx>
Date:   Wed May 30 11:07:05 2018 -0400

    media: videodev2: get rid of VIDIOC_RESERVED

    While this ioctl is there at least since Kernel 2.6.12-rc2, it
    was never used by any upstream driver.

    Get rid of it.

    Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx>

This patch fixes this build error.

  CC	ioctls/videodev2.o
In file included from ioctls/videodev2.c:4:
ioctls/videodev2.c:8:8: error: ‘VIDIOC_RESERVED’ undeclared here (not in a function); did you mean ‘VIDIOC_G_STD’?
  IOCTL(VIDIOC_RESERVED),
        ^~~~~~~~~~~~~~~
include/ioctls.h:53:15: note: in definition of macro ‘IOCTL’
  { .request = _request, .name = #_request, }
               ^~~~~~~~

Signed-off-by: Vinson Lee <vlee@xxxxxxxxxxxxxxx>
---
 ioctls/videodev2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ioctls/videodev2.c b/ioctls/videodev2.c
index f7183f29835a..67089abf742f 100644
--- a/ioctls/videodev2.c
+++ b/ioctls/videodev2.c
@@ -5,7 +5,9 @@
 
 static const struct ioctl videodev2_ioctls[] = {
 	IOCTL(VIDIOC_QUERYCAP),
+#ifdef VIDIOC_RESERVED
 	IOCTL(VIDIOC_RESERVED),
+#endif
 	IOCTL(VIDIOC_ENUM_FMT),
 	IOCTL(VIDIOC_G_FMT),
 	IOCTL(VIDIOC_S_FMT),
-- 
2.18.0




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux