]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm, slub: fix memory and cpu hotplug related lock ordering issues - fix
authorVlastimil Babka <vbabka@suse.cz>
Mon, 23 Aug 2021 23:59:01 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:33:32 +0000 (09:33 +1000)
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 <vbabka@suse.cz>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/slub.c

index 5795e423483b31f16fad1172543f393baf46cbbb..29d71ae20c90cfb295aa1f50a5a0c355358f93af 100644 (file)
--- 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;