aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-06-07 00:07:29 +0800
committerAndreas Blaesius <skate4life@gmx.de>2016-06-05 21:21:35 +0200
commit5414048024b0067a5f7209e9281d6c4a26c95bcb (patch)
tree7e376a57b7142a17f08731500d7ecc444bc4db1b
parentf4cec7dadfb29a6ce6f0924056e51eea6fabbcd2 (diff)
downloadkernel_samsung_espresso10-5414048024b0067a5f7209e9281d6c4a26c95bcb.zip
kernel_samsung_espresso10-5414048024b0067a5f7209e9281d6c4a26c95bcb.tar.gz
kernel_samsung_espresso10-5414048024b0067a5f7209e9281d6c4a26c95bcb.tar.bz2
zram: kill unused zram_get_num_devices()
Now there's no caller of zram_get_num_devices(), so kill it. And change zram_devices to static because it's only used in zram_drv.c. Change-Id: Iaf686cf9ae9673325ba481f001df689cedfa2c66 Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Git-commit: 0f0e3ba346c8d8d2cb409b157df79805931a1c2c Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
-rw-r--r--drivers/staging/zram/zram_drv.c7
-rw-r--r--drivers/staging/zram/zram_drv.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index e4bdf0a..49997e7 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -37,7 +37,7 @@
/* Globals */
static int zram_major;
-struct zram *zram_devices;
+static struct zram *zram_devices;
/* Module params (documentation at end) */
static unsigned int num_devices = 1;
@@ -681,11 +681,6 @@ static void destroy_device(struct zram *zram)
blk_cleanup_queue(zram->queue);
}
-unsigned int zram_get_num_devices(void)
-{
- return num_devices;
-}
-
static int __init zram_init(void)
{
int ret, dev_id;
diff --git a/drivers/staging/zram/zram_drv.h b/drivers/staging/zram/zram_drv.h
index d542eee..b3a315d 100644
--- a/drivers/staging/zram/zram_drv.h
+++ b/drivers/staging/zram/zram_drv.h
@@ -110,8 +110,6 @@ struct zram {
struct zram_stats stats;
};
-extern struct zram *zram_devices;
-unsigned int zram_get_num_devices(void);
#ifdef CONFIG_SYSFS
extern struct attribute_group zram_disk_attr_group;
#endif