diff options
author | 2025-01-28 22:22:46 +0100 | |
---|---|---|
committer | 2025-02-03 20:57:39 +0100 | |
commit | cfb1bfe9535a74f01a6b9df9fbf1cf0608d13786 (patch) | |
tree | db6c56dc26e8caa53f9e7ae97fbf6e3f3c2d474d /drivers/gpu/drm/i915/display/intel_dp_mst.c | |
parent | selftests/nolibc: enable -Wmissing-prototypes (diff) | |
download | wireguard-linux-cfb1bfe9535a74f01a6b9df9fbf1cf0608d13786.tar.xz wireguard-linux-cfb1bfe9535a74f01a6b9df9fbf1cf0608d13786.zip |
tools/nolibc: make signature of ioctl() more flexible
POSIX defines the signature of ioctl() as follows,
to allow passing a pointer or integer without casting:
int ioctl(int fildes, int request, ... /* arg */);
Nolibc ioctl() expects a pointer, forcing the user to manually cast.
Using va_arg to make the signature more flexible would work but seems to
prevent inlining of the function. Instead use a macro. "fd" and "req"
will still be typechecked through sys_ioctl().
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions