OSDN Git Service

mm: kmem: make __memcg_kmem_(un)charge static
authorRoman Gushchin <guro@fb.com>
Wed, 24 Feb 2021 20:03:58 +0000 (12:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:29 +0000 (13:38 -0800)
commitc1a660dea3fa616420606f1e206e6d22f7e05c30
treeb7a93d503e0d9e57d8d31486efe4e86b8c4b5bf2
parentb6038942480e574c697ea1a80019bbe586c1d654
mm: kmem: make __memcg_kmem_(un)charge static

I've noticed that __memcg_kmem_charge() and __memcg_kmem_uncharge() are
not used anywhere except memcontrol.c.  Yet they are not declared as
non-static and are declared in memcontrol.h.

This patch makes them static.

Link: https://lkml.kernel.org/r/20210108020332.4096911-1-guro@fb.com
Signed-off-by: Roman Gushchin <guro@fb.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c