From: Frederic Weisbecker <frederic@kernel.org>
To: Jonathan Corbet <corbet@lwn.net>
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: Tue, 12 May 2026 15:34:48 +0200 [thread overview]
Message-ID: <agMseHkMBF04ecS3@localhost.localdomain> (raw)
In-Reply-To: <87wlxkczyy.fsf@trenco.lwn.net>
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>
Thanks!
--
Frederic Weisbecker
SUSE Labs
next prev parent reply other threads:[~2026-05-12 13:34 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 [this message]
2026-05-15 14:25 ` Jonathan Corbet
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=agMseHkMBF04ecS3@localhost.localdomain \
--to=frederic@kernel.org \
--cc=cheeversr0@gmail.com \
--cc=corbet@lwn.net \
--cc=costa.shul@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.