]> git.baikalelectronics.ru Git - kernel.git/commitdiff
vmscan: make drop_slab_node static
authorGang Li <ligang.bdlg@bytedance.com>
Fri, 14 Jan 2022 22:08:07 +0000 (14:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:30 +0000 (16:30 +0200)
drop_slab_node is only used in drop_slab.  So remove it's declaration
from header file and add keyword static for it's definition.

Link: https://lkml.kernel.org/r/20211111062445.5236-1-ligang.bdlg@bytedance.com
Signed-off-by: Gang Li <ligang.bdlg@bytedance.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/vmscan.c

index cef65f9cbdf2533f1ee4d354d4351b6704b32e9b..eb67eb699b7852a78fb3538c1ad01282a522caea 100644 (file)
@@ -3122,7 +3122,6 @@ int drop_caches_sysctl_handler(struct ctl_table *, int, void *, size_t *,
 #endif
 
 void drop_slab(void);
-void drop_slab_node(int nid);
 
 #ifndef CONFIG_MMU
 #define randomize_va_space 0
index 700434db57352f7044ab08a3ddbd89c40cb9e17c..090bfb605ecf077ca329fbdd454ebeef720c2b87 100644 (file)
@@ -951,7 +951,7 @@ out:
        return freed;
 }
 
-void drop_slab_node(int nid)
+static void drop_slab_node(int nid)
 {
        unsigned long freed;
        int shift = 0;