[PATCH] afs: make afs_volume_record_life static and remove afs_volume_gc_delay

From: Colin King
Date: Sat Jun 23 2018 - 18:42:31 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Variable afs_volume_record_life is local to the source and does not need
to be in global scope, so make it static. Variable afs_volume_gc_delay
is not referenced at all in the source, it is unused and can be removed.

Cleans up sparse warnings:
symbol 'afs_volume_gc_delay' was not declared. Should it be static?
symbol 'afs_volume_record_life' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
fs/afs/volume.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/afs/volume.c b/fs/afs/volume.c
index 7adcddf02e66..f924ead1c7a1 100644
--- a/fs/afs/volume.c
+++ b/fs/afs/volume.c
@@ -13,8 +13,7 @@
#include <linux/slab.h>
#include "internal.h"

-unsigned __read_mostly afs_volume_gc_delay = 10;
-unsigned __read_mostly afs_volume_record_life = 60 * 60;
+static unsigned __read_mostly afs_volume_record_life = 60 * 60;

static const char *const afs_voltypes[] = { "R/W", "R/O", "BAK" };

--
2.17.0