On Thu, Jul 24, 2025 at 1:10 PM Lorenzo Stoakes <lorenzo.stoa...@oracle.com> wrote: > On Thu, Jul 24, 2025 at 11:24:29AM +0200, Bartosz Golaszewski wrote:
... > > extern void *kmemdup_noprof(const void *src, size_t len, gfp_t gfp) > > __realloc_size(2); > > #define kmemdup(...) alloc_hooks(kmemdup_noprof(__VA_ARGS__)) > > > > +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... :-( > > extern void *kvmemdup(const void *src, size_t len, gfp_t gfp) > > __realloc_size(2); > > extern char *kmemdup_nul(const char *s, size_t len, gfp_t gfp); > > extern void *kmemdup_array(const void *src, size_t count, size_t > > element_size, gfp_t gfp) -- With Best Regards, Andy Shevchenko