From: Jens Axboe <axboe@kernel.dk>
To: Gabriel Krisman Bertazi <krisman@suse.de>
Cc: Caleb Sander Mateos <csander@purestorage.com>,
Yi Xie <xieyi@kylinos.cn>,
io-uring@vger.kernel.org
Subject: Re: [PATCH] io_uring: parenthesize io_ring_head_to_buf() expansion
Date: Thu, 14 May 2026 09:02:52 -0600 [thread overview]
Message-ID: <8f10cb2c-a61c-48c1-9b90-8685d9e7f531@kernel.dk> (raw)
In-Reply-To: <87a4u2597v.fsf@mailhost.krisman.be>
On 5/14/26 8:58 AM, Gabriel Krisman Bertazi wrote:
> Jens Axboe <axboe@kernel.dk> writes:
>
>>>> /* 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)])
>>>
>>> Is there a reason this can't just be an inline function?
>>
>> And generally I don't like cleanups like this, but this one
>> at least made sense to me.
>
> The annoying part, IMO, is that we/I look at every trivial fix
> wondering if it really is just a parenthesis fix, or if it's the next
> CopyFail/Fragnesia fix with an obfuscated commit message..
No kidding, trust no one these days, it's mostly all LLM and suspect :/
--
Jens Axboe
prev parent reply other threads:[~2026-05-14 15:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 8:34 [PATCH] io_uring: parenthesize io_ring_head_to_buf() expansion Yi Xie
2026-05-14 13:24 ` Jens Axboe
2026-05-14 14:22 ` Caleb Sander Mateos
2026-05-14 14:25 ` Jens Axboe
2026-05-14 14:43 ` Caleb Sander Mateos
2026-05-14 14:44 ` Jens Axboe
2026-05-14 14:58 ` Gabriel Krisman Bertazi
2026-05-14 15:02 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f10cb2c-a61c-48c1-9b90-8685d9e7f531@kernel.dk \
--to=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=io-uring@vger.kernel.org \
--cc=krisman@suse.de \
--cc=xieyi@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox