[PATCH v8 6/8] mm/util: Deduplicate code in {kstrdup, kstrndup, kmemdup_nul}

Yafang Shao laoar.shao at gmail.com
Wed Aug 28 12:58:14 UTC 2024


On Wed, Aug 28, 2024 at 6:33 PM Alejandro Colomar <alx at kernel.org> wrote:
>
> On Wed, Aug 28, 2024 at 12:32:53PM GMT, Alejandro Colomar wrote:
> > On Wed, Aug 28, 2024 at 11:03:19AM GMT, Yafang Shao wrote:
> > > These three functions follow the same pattern. To deduplicate the code,
> > > let's introduce a common helper __kmemdup_nul().
> > >
> > > Suggested-by: Andrew Morton <akpm at linux-foundation.org>
> > > Signed-off-by: Yafang Shao <laoar.shao at gmail.com>
> > > Cc: Simon Horman <horms at kernel.org>
> > > Cc: Matthew Wilcox <willy at infradead.org>
> > > Cc: Alejandro Colomar <alx at kernel.org>
> > > ---
> >
> > Reviewed-by: Alejandro Colomar <alx at kernel.org>
>
> (Or maybe I should say
>
> Co-developed-by: Alejandro Colomar <alx at kernel.org>
> Signed-off-by: Alejandro Colomar <alx at kernel.org>

I will add it.
Thanks for your help.

-- 
Regards
Yafang


More information about the dri-devel mailing list