summaryrefslogtreecommitdiff
path: root/Documentation/environment_variables.rst
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2024-06-25 09:51:49 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-25 10:22:00 +0300
commit4d0834ea0adfb5139e0ab83751d3e89d72e0a931 (patch)
treed110898a44075311df8b095b9f0fa1ebed05ded9 /Documentation/environment_variables.rst
parentbab056eb8621d499d0a2be688ef1a06797a7da1b (diff)
v4l2: v4l2_compat: Move `open*()` flag check into function
This commit moves the check that determines whether the mode argument of `open*()` exists into a separate function. With that, the check is fixed because previously it failed to account for the fact that `O_TMPFILE` is not a power of two. Furthermore, add `assert()`s in the fortified variants that ensure that no mode is required by the specified flags. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Documentation/environment_variables.rst')
0 files changed, 0 insertions, 0 deletions