aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorGravatar Jens Axboe <axboe@kernel.dk> 2024-01-16 17:08:32 -0700
committerGravatar Jens Axboe <axboe@kernel.dk> 2024-01-17 09:45:18 -0700
commitbaf59771343dc0c2ef9ac3189bf9df2d6143654f (patch)
tree4380db120e3092006e5a8df88a6a14baf4dc6e7e /.clang-format
parentio_uring/rsrc: improve code generation for fixed file assignment (diff)
downloadlinux-baf59771343dc0c2ef9ac3189bf9df2d6143654f.tar.gz
linux-baf59771343dc0c2ef9ac3189bf9df2d6143654f.tar.bz2
linux-baf59771343dc0c2ef9ac3189bf9df2d6143654f.zip
io_uring/register: guard compat syscall with CONFIG_COMPAT
Add compat.h include to avoid a potential build issue: io_uring/register.c:281:6: error: call to undeclared function 'in_compat_syscall'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (in_compat_syscall()) { ^ 1 warning generated. io_uring/register.c:282:9: error: call to undeclared function 'compat_get_bitmap'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] ret = compat_get_bitmap(cpumask_bits(new_mask), ^ Fixes: c43203154d8a ("io_uring/register: move io_uring_register(2) related code to register.c") Reported-by: Manu Bretelle <chantra@meta.com> Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions