diff options
| author | Yi Xie <xieyi@kylinos.cn> | 2026-05-14 16:34:43 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-05-14 07:21:32 -0600 |
| commit | c84701cfc90a90a6a9dfbdb138706a6d79f5b186 (patch) | |
| tree | 038573b10fb8df8c9c1c62b01030ca8fa27cdab8 /io_uring | |
| parent | 5d6919055dec134de3c40167a490f33c74c12581 (diff) | |
| download | ath-c84701cfc90a90a6a9dfbdb138706a6d79f5b186.tar.gz | |
io_uring: parenthesize io_ring_head_to_buf() expansion
Wrap the io_ring_head_to_buf() macro value in an extra pair of parentheses
so it is safe when composed into larger expressions, and to satisfy
scripts/checkpatch.pl.
Signed-off-by: Yi Xie <xieyi@kylinos.cn>
Link: https://patch.msgid.link/20260514083443.203387-1-xieyi@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
| -rw-r--r-- | io_uring/kbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/kbuf.c b/io_uring/kbuf.c index 63061aa1cab94..dd54e43e9ddf4 100644 --- a/io_uring/kbuf.c +++ b/io_uring/kbuf.c @@ -21,7 +21,7 @@ #define MAX_BIDS_PER_BGID (1 << 16) /* Mapped buffer ring, return io_uring_buf from head */ -#define io_ring_head_to_buf(br, head, mask) &(br)->bufs[(head) & (mask)] +#define io_ring_head_to_buf(br, head, mask) (&(br)->bufs[(head) & (mask)]) struct io_provide_buf { struct file *file; |
