All of lore.kernel.org
 help / color / mirror / Atom feed
* [git:media_tree/master] media: v4l2-subdev.h: BIT() is not available in userspace
@ 2021-01-26 18:14 Mauro Carvalho Chehab
  0 siblings, 0 replies; only message in thread
From: Mauro Carvalho Chehab @ 2021-01-26 18:14 UTC (permalink / raw)
  To: linuxtv-commits; +Cc: Hans Verkuil, stable

This is an automatic generated email to let you know that the following patch were queued:

Subject: media: v4l2-subdev.h: BIT() is not available in userspace
Author:  Hans Verkuil <hverkuil-cisco@xs4all.nl>
Date:    Mon Jan 18 16:37:00 2021 +0100

The BIT macro is not available in userspace, so replace BIT(0) by
0x00000001.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 6446ec6cbf46 ("media: v4l2-subdev: add VIDIOC_SUBDEV_QUERYCAP ioctl")
Cc: <stable@vger.kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

 include/uapi/linux/v4l2-subdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h
index 00850b98078a..a38454d9e0f5 100644
--- a/include/uapi/linux/v4l2-subdev.h
+++ b/include/uapi/linux/v4l2-subdev.h
@@ -176,7 +176,7 @@ struct v4l2_subdev_capability {
 };
 
 /* The v4l2 sub-device video device node is registered in read-only mode. */
-#define V4L2_SUBDEV_CAP_RO_SUBDEV		BIT(0)
+#define V4L2_SUBDEV_CAP_RO_SUBDEV		0x00000001
 
 /* Backwards compatibility define --- to be removed */
 #define v4l2_subdev_edid v4l2_edid

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-01  9:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 18:14 [git:media_tree/master] media: v4l2-subdev.h: BIT() is not available in userspace Mauro Carvalho Chehab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.