mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
vmscan: make drop_slab_node static
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>
This commit is contained in:
parent
692b55815c
commit
e4b424b7ec
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue