From: Jonathan Corbet <corbet@lwn.net>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: Costa Shulyupin <costa.shul@redhat.com>,
Shuah Khan <skhan@linuxfoundation.org>,
Ryan Cheevers <cheeversr0@gmail.com>,
Waiman Long <longman@redhat.com>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] docs: housekeeping: Fix struct member access in code example
Date: Fri, 15 May 2026 08:25:42 -0600 [thread overview]
Message-ID: <875x4orbq1.fsf@trenco.lwn.net> (raw)
In-Reply-To: <agMseHkMBF04ecS3@localhost.localdomain>
Frederic Weisbecker <frederic@kernel.org> writes:
> Le Sun, May 03, 2026 at 08:47:01AM -0600, Jonathan Corbet a écrit :
>> Costa Shulyupin <costa.shul@redhat.com> writes:
>>
>> > No such array housekeeping_cpumasks
>> >
>> > Fix to housekeeping.cpumasks.
>> >
>> > Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
>> > ---
>> > Documentation/core-api/housekeeping.rst | 2 +-
>> > 1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/Documentation/core-api/housekeeping.rst b/Documentation/core-api/housekeeping.rst
>> > index 92c6e53cea75..ccb0a88b9cb3 100644
>> > --- a/Documentation/core-api/housekeeping.rst
>> > +++ b/Documentation/core-api/housekeeping.rst
>> > @@ -99,7 +99,7 @@ the same RCU read side critical section.
>> > A typical layout example would look like this on the update side
>> > (``housekeeping_update()``)::
>> >
>> > - rcu_assign_pointer(housekeeping_cpumasks[type], trial);
>> > + rcu_assign_pointer(housekeeping.cpumasks[type], trial);
>> > synchronize_rcu();
>>
>> This looks actively wrong to me. I think it should be:
>>
>> housekeeping_cpumask(type)
>>
>> ... Frederic ... ?
>
> No, Costa is right, housekeeping.cpumasks[type] is where we store
> the pointer. housekeeping_cpumask(type) is only an accessor.
>
> So:
>
> Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
OK, then, applied, thanks.
jon
prev parent reply other threads:[~2026-05-15 14:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-01 4:38 [PATCH v1] docs: housekeeping: Fix struct member access in code example Costa Shulyupin
2026-05-03 14:47 ` Jonathan Corbet
2026-05-12 13:34 ` Frederic Weisbecker
2026-05-15 14:25 ` Jonathan Corbet [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=875x4orbq1.fsf@trenco.lwn.net \
--to=corbet@lwn.net \
--cc=cheeversr0@gmail.com \
--cc=costa.shul@redhat.com \
--cc=frederic@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=skhan@linuxfoundation.org \
/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