diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-27 17:39:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-28 11:26:18 +0100 |
commit | cf6299b6101903c31bddb0065804b2121ed510c7 (patch) | |
tree | 2e1b8f5d1e6dead57c7153a647084e8b60e72c8d /fs/gfs2 | |
parent | ee6d3dd4ed48ab24b74bab3c3977b8218518247d (diff) | |
download | linux-cf6299b6101903c31bddb0065804b2121ed510c7.tar.gz linux-cf6299b6101903c31bddb0065804b2121ed510c7.tar.bz2 linux-cf6299b6101903c31bddb0065804b2121ed510c7.zip |
kobject: remove kset from struct kset_uevent_ops callbacks
There is no need to pass the pointer to the kset in the struct
kset_uevent_ops callbacks as no one uses it, so just remove that pointer
entirely.
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Wedson Almeida Filho <wedsonaf@google.com>
Link: https://lore.kernel.org/r/20211227163924.3970661-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/sys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index c0a34d9ddee4..a6002b2d146d 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c @@ -767,8 +767,7 @@ void gfs2_sys_fs_del(struct gfs2_sbd *sdp) wait_for_completion(&sdp->sd_kobj_unregister); } -static int gfs2_uevent(struct kset *kset, struct kobject *kobj, - struct kobj_uevent_env *env) +static int gfs2_uevent(struct kobject *kobj, struct kobj_uevent_env *env) { struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); struct super_block *s = sdp->sd_vfs; |