From: Manuel Ebner <manuelebner@mailbox.org>
To: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
linux-doc@vger.kernel.org, Kees Cook <kees@kernel.org>,
linux-kernel@vger.kernel.org, workflows@vger.kernel.org,
linux-sound@vger.kernel.org, linux-media@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH v4 1/3] Documentation: adopt new coding style of type-aware kmalloc-family
Date: Fri, 01 May 2026 11:12:22 +0200 [thread overview]
Message-ID: <755c37fa985eb3112322ac77be661d6e3614ba44.camel@mailbox.org> (raw)
In-Reply-To: <20260430010013.113971-1-sj@kernel.org>
On Wed, 2026-04-29 at 18:00 -0700, SeongJae Park wrote:
> On Wed, 29 Apr 2026 17:53:36 -0700 SeongJae Park <sj@kernel.org> wrote:
>
> > On Wed, 29 Apr 2026 09:14:44 +0200 Manuel Ebner <manuelebner@mailbox.org>
> > wrote:
> >
> > > Update the documentation to reflect new type-aware kmalloc-family as
> > > suggested in commit 2932ba8d9c99 ("slab: Introduce kmalloc_obj()
> > > and family")
> > >
> > > ptr = kmalloc(sizeof(*ptr), gfp);
> > > -> ptr = kmalloc_obj(*ptr);
> > > ptr = kmalloc(sizeof(struct some_obj_name), gfp);
> > > -> ptr = kmalloc_obj(*ptr);
> > > ptr = kzalloc(sizeof(*ptr), gfp);
> > > -> ptr = kzalloc_obj(*ptr);
> > > ptr = kmalloc_array(count, sizeof(*ptr), gfp);
> > > -> ptr = kmalloc_objs(*ptr, count);
> > > ptr = kcalloc(count, sizeof(*ptr), gfp);
> > > -> ptr = kzalloc_objs(*ptr, count);
>
> Forgot asking this, sorry. Shouldn't 'gfp' parameters be kept?
Yes, i should have kept it, like so:
eg. ptr = kmalloc_obj(*ptr, gfp);
-> ptr = kmalloc_obj(*ptr [, gfp] );
same in [Patch 2/3]
> >
> > > Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
> >
> > Acked-by: SeongJae Park <sj@kernel.org>
>
> My Acked-by: is still valid regardless of your answer to my trivial question.
Thanks
Manuel
>
> Thanks,
> SJ
>
> [...]
next prev parent reply other threads:[~2026-05-01 9:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 7:08 [PATCH v4 0/3] Documentation: adopt new coding style of type-aware kmalloc-family Manuel Ebner
2026-04-29 7:14 ` [PATCH v4 1/3] " Manuel Ebner
2026-04-29 8:00 ` Vlastimil Babka
2026-04-30 0:53 ` SeongJae Park
2026-04-30 1:00 ` SeongJae Park
2026-05-01 9:12 ` Manuel Ebner [this message]
2026-04-29 7:23 ` [PATCH v4 2/3] Documentation: RCU: " Manuel Ebner
2026-04-29 8:01 ` Vlastimil Babka
2026-04-30 0:56 ` SeongJae Park
2026-04-29 7:27 ` [PATCH v4 3/3] Documentation: deprecated.rst: kmalloc-family: mark argument as optional Manuel Ebner
2026-04-29 8:01 ` Vlastimil Babka
2026-04-30 1:03 ` SeongJae Park
2026-05-01 9:19 ` Manuel Ebner
2026-05-03 14:56 ` [PATCH v4 0/3] Documentation: adopt new coding style of type-aware kmalloc-family Jonathan Corbet
2026-05-03 15:47 ` Manuel Ebner
2026-05-03 15:51 ` 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=755c37fa985eb3112322ac77be661d6e3614ba44.camel@mailbox.org \
--to=manuelebner@mailbox.org \
--cc=corbet@lwn.net \
--cc=kees@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-sound@vger.kernel.org \
--cc=sj@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=workflows@vger.kernel.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