Re: [PATCH 1/2] Compiler Attributes: Add __access macro
From: Miguel Ojeda
Date: Wed Apr 22 2026 - 06:26:00 EST
On Wed, Apr 22, 2026 at 12:01 PM David Laight
<david.laight.linux@xxxxxxxxx> wrote:
>
> Putting the actual syntax in the comment would help, eg as:
> __access__(read_only|read_write|write_only|none, param_number[, size])
I guess you mean as a quick reminder for those that already know about
the attribute?
That sounds OK for an attribute like this, though generally speaking I
would avoid duplicating the compiler docs. (Hopefully people will
still read the actual docs... :)
By the way, that could be `__access`, i.e. documenting our side, i.e. the macro.
Cheers,
Miguel