[PATCH v3 01/15] lib: provide kmemdup_const()
Lorenzo Stoakes
lorenzo.stoakes at oracle.com
Thu Jul 24 04:15:11 PDT 2025
On Thu, Jul 24, 2025 at 01:12:49PM +0200, Andy Shevchenko wrote:
> On Thu, Jul 24, 2025 at 1:10 PM Lorenzo Stoakes
> <lorenzo.stoakes at oracle.com> wrote:
> > On Thu, Jul 24, 2025 at 11:24:29AM +0200, Bartosz Golaszewski wrote:
> > > +extern const void *kmemdup_const(const void *src, size_t len, gfp_t gfp);
> >
> > Please drop extern, it's unnecessary.
>
> It's all over the header. This should be done as a precursor patch and
> I know that usually people push back on doing that. I gave up on this.
> Kernel is going to rot sooner or later... :-(
In mm we just update as we go, this is probably the best approach to avoid
unnecessary churn.
More information about the Linux-mediatek
mailing list