FROMLIST: android: binder: Change binder_shrinker to static
authorSherry Yang <sherryy@android.com>
Thu, 5 Oct 2017 21:00:57 +0000 (17:00 -0400)
committerTodd Kjos <tkjos@google.com>
Mon, 23 Oct 2017 15:57:30 +0000 (15:57 +0000)
(from https://patchwork.kernel.org/patch/9990321/)

binder_shrinker struct is not used anywhere outside of
binder_alloc.c and should be static.

Bug: 63926541
Change-Id: I7a13d4ddbaaf3721cddfe1d860e34c7be80dd082
Acked-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Sherry Yang <sherryy@android.com>
drivers/android/binder_alloc.c

index 9057411..127d08c 100644 (file)
@@ -984,7 +984,7 @@ binder_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
        return ret;
 }
 
-struct shrinker binder_shrinker = {
+static struct shrinker binder_shrinker = {
        .count_objects = binder_shrink_count,
        .scan_objects = binder_shrink_scan,
        .seeks = DEFAULT_SEEKS,