v4l2-tracer: use __s64 instead of long
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Gregor,
This one should probably go to a 1.24.1 stable release.
Sorry about that, we didn't try to build on a 32 bit system.
The good news is: people ARE using this, since it was reported within a day.
Regards,
Hans
-------- Forwarded Message --------
Subject: [git:v4l-utils/master] v4l2-tracer: use __s64 instead of long
Date: Fri, 24 Feb 2023 14:49:00 +0000
From: Hans Verkuil <[email protected]>
Reply-To: [email protected]
To: [email protected]
This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l2-tracer: use __s64 instead of long Author: Hans Verkuil <[email protected]> Date: Fri Feb 24 15:42:59 2023 +0100
This fixes compiler errors when building on the 32 bit architecture.
They are all of this type:
../../include/linux/videodev2.h:2583:33: error: narrowing conversion of 3222820424 from unsigned int to long int [-Wnarrowing]
2583 | #define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls)
| ^~~~~
v4l2-tracer-info-gen.h:2069:11: note: in expansion of macro VIDIOC_S_EXT_CTRLS
2069 | { VIDIOC_S_EXT_CTRLS, "VIDIOC_S_EXT_CTRLS" },
| ^~~~~~~~~~~~~~~~~~and:
../../include/linux/videodev2.h:2583:33: error: narrowing conversion of 3222820424 from unsigned int to long int [-Wnarrowing]
2583 | #define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls)
| ^~~~~
retrace.cpp:1273:14: note: in expansion of macro VIDIOC_S_EXT_CTRLS
1273 | case VIDIOC_S_EXT_CTRLS:
| ^~~~~~~~~~~~~~~~~~utils/v4l2-tracer/retrace.cpp | 2 +- utils/v4l2-tracer/v4l2-tracer-common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
---
http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=5ab5a0ee52d0b96f1750d32e4ed63e2f43d71439
utils/v4l2-tracer/retrace.cpp +1 -1
@@ -1166,7 +1166,7 @@ void retrace_media_ioc_request_alloc(int fd_retrace, json_object *ioctl_args) void retrace_ioctl(json_object *syscall_obj) { - long cmd = 0; + __s64 cmd = 0; int fd_retrace = 0; json_object *fd_trace_obj;
utils/v4l2-tracer/v4l2-tracer-common.h +1 -1
@@ -41,7 +41,7 @@#endif struct val_def { -long val; +__s64 val;const char *str; };
_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
Hi,
Quoted 5 lines · Hans Verkuil
This one should probably go to a 1.24.1 stable release.
Sorry about that, we didn't try to build on a 32 bit system.
The good news is: people ARE using this, since it was reported within a day.
No worries. I'll prepare a release this weekend.
Thanks,
Gregor