• Randy Dunlap's avatar
    io_uring: fix 1-bit bitfields to be unsigned · e1d85334
    Randy Dunlap authored
    Make bitfields of size 1 bit be unsigned (since there is no room
    for the sign bit).
    This clears up the sparse warnings:
    
      CHECK   ../fs/io_uring.c
    ../fs/io_uring.c:207:50: error: dubious one-bit signed bitfield
    ../fs/io_uring.c:208:55: error: dubious one-bit signed bitfield
    ../fs/io_uring.c:209:63: error: dubious one-bit signed bitfield
    ../fs/io_uring.c:210:54: error: dubious one-bit signed bitfield
    ../fs/io_uring.c:211:57: error: dubious one-bit signed bitfield
    
    Found by sight and then verified with sparse.
    
    Fixes: 69b3e546 ("io_uring: change io_ring_ctx bool fields into bit fields")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: io-uring@vger.kernel.org
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    e1d85334
io_uring.c 166 KB