aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongbo Cao <cdbdyx@163.com>2018-10-08 08:41:17 -0400
committerJens Axboe <axboe@kernel.dk>2018-10-08 10:19:53 -0400
commit91bafdf081b8ad8ab4977918ee45dffe3d744060 (patch)
tree2a3a455bddfebd55949b066b1891a833f331f63d
parent3fd3c5c02b2865e506bee1212c8423eac0d4cddf (diff)
bcache: remove useless parameter of bch_debug_init()
Parameter "struct kobject *kobj" in bch_debug_init() is useless, remove it in this patch. Signed-off-by: Dongbo Cao <cdbdyx@163.com> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/md/bcache/bcache.h2
-rw-r--r--drivers/md/bcache/debug.c2
-rw-r--r--drivers/md/bcache/super.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h
index 954dad29e6e8..b61b83bbcfff 100644
--- a/drivers/md/bcache/bcache.h
+++ b/drivers/md/bcache/bcache.h
@@ -1004,7 +1004,7 @@ void bch_open_buckets_free(struct cache_set *c);
1004int bch_cache_allocator_start(struct cache *ca); 1004int bch_cache_allocator_start(struct cache *ca);
1005 1005
1006void bch_debug_exit(void); 1006void bch_debug_exit(void);
1007void bch_debug_init(struct kobject *kobj); 1007void bch_debug_init(void);
1008void bch_request_exit(void); 1008void bch_request_exit(void);
1009int bch_request_init(void); 1009int bch_request_init(void);
1010 1010
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c
index 06da66b2488a..8f448b9c96a1 100644
--- a/drivers/md/bcache/debug.c
+++ b/drivers/md/bcache/debug.c
@@ -253,7 +253,7 @@ void bch_debug_exit(void)
253 debugfs_remove_recursive(bcache_debug); 253 debugfs_remove_recursive(bcache_debug);
254} 254}
255 255
256void __init bch_debug_init(struct kobject *kobj) 256void __init bch_debug_init(void)
257{ 257{
258 /* 258 /*
259 * it is unnecessary to check return value of 259 * it is unnecessary to check return value of
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 1155bd823b6f..2ce3fe9a1efe 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -2389,7 +2389,7 @@ static int __init bcache_init(void)
2389 sysfs_create_files(bcache_kobj, files)) 2389 sysfs_create_files(bcache_kobj, files))
2390 goto err; 2390 goto err;
2391 2391
2392 bch_debug_init(bcache_kobj); 2392 bch_debug_init();
2393 closure_debug_init(); 2393 closure_debug_init();
2394 2394
2395 return 0; 2395 return 0;