linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Suren Baghdasaryan <surenb@google.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>,
	cl@linux.com, penberg@kernel.org,  rientjes@google.com,
	iamjoonsoo.kim@lge.com, vbabka@suse.cz,
	 roman.gushchin@linux.dev, 42.hyeyoo@gmail.com,
	linux-mm@kvack.org,  linux-kernel@vger.kernel.org,
	Abaci Robot <abaci@linux.alibaba.com>,
	 Kent Overstreet <kent.overstreet@linux.dev>,
	Randy Dunlap <rdunlap@infradead.org>
Subject: Re: [PATCH] mm/slab_common: Modify mismatched function name
Date: Wed, 3 Apr 2024 18:50:03 -0700	[thread overview]
Message-ID: <CAJuCfpF8jrZx80j_6DgAKt0d_OSUwktpubY5kEHBp_dgU5A3bQ@mail.gmail.com> (raw)
In-Reply-To: <20240403182320.93491c23ed5ae19e94158ceb@linux-foundation.org>

On Wed, Apr 3, 2024 at 6:23 PM Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Thu, 28 Mar 2024 10:07:11 +0800 Jiapeng Chong <jiapeng.chong@linux.alibaba.com> wrote:
>
> > No functional modification involved.
> >
> > mm/slab_common.c:1215: warning: expecting prototype for krealloc(). Prototype was for krealloc_noprof() instead.
> >
> > ...
> >
> > --- a/mm/slab_common.c
> > +++ b/mm/slab_common.c
> > @@ -1199,7 +1199,7 @@ __do_krealloc(const void *p, size_t new_size, gfp_t flags)
> >  }
> >
> >  /**
> > - * krealloc - reallocate memory. The contents will remain unchanged.
> > + * krealloc_noprof - reallocate memory. The contents will remain unchanged.
> >   * @p: object to reallocate memory for.
> >   * @new_size: how many bytes of memory are required.
> >   * @flags: the type of memory to allocate.

Nack.

>
> Well ok, but krealloc_noprof() is just an internal implementation
> detail.  I suggest this documentation be moved to the new krealloc()
> wrapper site.  Because krealloc() remains the thing which people
> actually call.
>
> Presumably the same applies to more of the new _noprof functions.

We don't need this fixup. Randy Dunlap's change [1] should handle
_noprof suffixes correctly. The warning was likely generated because
his change was not yet picked up.

[1] https://lore.kernel.org/all/20240326054149.2121-1-rdunlap@infradead.org/


      reply	other threads:[~2024-04-04  1:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28  2:07 Jiapeng Chong
2024-04-02  7:40 ` Vlastimil Babka
2024-04-04  1:23 ` Andrew Morton
2024-04-04  1:50   ` Suren Baghdasaryan [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=CAJuCfpF8jrZx80j_6DgAKt0d_OSUwktpubY5kEHBp_dgU5A3bQ@mail.gmail.com \
    --to=surenb@google.com \
    --cc=42.hyeyoo@gmail.com \
    --cc=abaci@linux.alibaba.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux.com \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=jiapeng.chong@linux.alibaba.com \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=penberg@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rientjes@google.com \
    --cc=roman.gushchin@linux.dev \
    --cc=vbabka@suse.cz \
    /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