]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bcache: remove useless parameter of bch_debug_init()
authorDongbo Cao <cdbdyx@163.com>
Mon, 8 Oct 2018 12:41:17 +0000 (20:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Oct 2018 14:19:53 +0000 (08:19 -0600)
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>
drivers/md/bcache/bcache.h
drivers/md/bcache/debug.c
drivers/md/bcache/super.c

index 954dad29e6e8fca910b0ebd24171591f2acd0831..b61b83bbcfffc0104827619f2eab689ff7ececb9 100644 (file)
@@ -1004,7 +1004,7 @@ void bch_open_buckets_free(struct cache_set *c);
 int bch_cache_allocator_start(struct cache *ca);
 
 void bch_debug_exit(void);
-void bch_debug_init(struct kobject *kobj);
+void bch_debug_init(void);
 void bch_request_exit(void);
 int bch_request_init(void);
 
index 06da66b2488ae8f5371fcfeb92c7b336d24e78ca..8f448b9c96a14db9954d830bd27a7444c13ce83e 100644 (file)
@@ -253,7 +253,7 @@ void bch_debug_exit(void)
                debugfs_remove_recursive(bcache_debug);
 }
 
-void __init bch_debug_init(struct kobject *kobj)
+void __init bch_debug_init(void)
 {
        /*
         * it is unnecessary to check return value of
index 1155bd823b6f98dfca957fe02002984d0fa37ef7..2ce3fe9a1efe7354537eca6edbce5c19d8eb6bbb 100644 (file)
@@ -2389,7 +2389,7 @@ static int __init bcache_init(void)
            sysfs_create_files(bcache_kobj, files))
                goto err;
 
-       bch_debug_init(bcache_kobj);
+       bch_debug_init();
        closure_debug_init();
 
        return 0;