From: Vlastimil Babka Date: Mon, 23 Aug 2021 23:59:01 +0000 (+1000) Subject: mm, slub: fix memory and cpu hotplug related lock ordering issues - fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d2acb8e8d240643dc6c4684b40cb687dbd3c9590;p=users%2Fjedix%2Flinux-maple.git mm, slub: fix memory and cpu hotplug related lock ordering issues - fix Make __kmem_cache_do_shrink static to silence "no previous prototype" warning. Link: https://lkml.kernel.org/r/60e50d8c-ccfa-1036-5a03-2b1a9d25f958@suse.cz Signed-off-by: Vlastimil Babka Reported-by: kernel test robot Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/slub.c b/mm/slub.c index 5795e423483b..29d71ae20c90 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -4409,7 +4409,7 @@ EXPORT_SYMBOL(kfree); * being allocated from last increasing the chance that the last objects * are freed in them. */ -int __kmem_cache_do_shrink(struct kmem_cache *s) +static int __kmem_cache_do_shrink(struct kmem_cache *s) { int node; int i;