From: Dongbo Cao cdbdyx@163.com
mainline inclusion from mainline-4.20-rc1 commit 91bafdf081b8ad8ab4977918ee45dffe3d744060 category: backport
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 | 2 +- drivers/md/bcache/debug.c | 2 +- drivers/md/bcache/super.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 83f0b91aeb90..d256231d9915 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -1002,7 +1002,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);
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c index 8c53d874ada4..8b123be05254 100644 --- a/drivers/md/bcache/debug.c +++ b/drivers/md/bcache/debug.c @@ -252,7 +252,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 diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 14d381cc6d74..65e83e53449f 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -2383,7 +2383,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;