diff options
author | Tejun Heo <tj@kernel.org> | 2013-11-28 20:54:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-30 03:09:27 +0100 |
commit | 51a35e9fd0f229d2f84455ee7e85a5d30fa35594 (patch) | |
tree | a109ef77fa70af2a012e7a22ea785d0446ee7a56 /fs/sysfs/mount.c | |
parent | sysfs, kernfs: drop unused params from sysfs_fill_super() (diff) | |
download | linux-51a35e9fd0f229d2f84455ee7e85a5d30fa35594.tar.xz linux-51a35e9fd0f229d2f84455ee7e85a5d30fa35594.zip |
sysfs, kernfs: make sysfs_super_info->ns const
Add const qualifier to sysfs_super_info->ns so that it's consistent
with other namespace tag usages in sysfs. Because kobject doesn't use
const qualifier for namespace tags, this ends up requiring an explicit
cast to drop const qualifier in free_sysfs_super_info().
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs/mount.c')
-rw-r--r-- | fs/sysfs/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 21070c286e3f..fcbe5e80aeeb 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -92,7 +92,7 @@ static int sysfs_set_super(struct super_block *sb, void *data) static void free_sysfs_super_info(struct sysfs_super_info *info) { - kobj_ns_drop(KOBJ_NS_TYPE_NET, info->ns); + kobj_ns_drop(KOBJ_NS_TYPE_NET, (void *)info->ns); kfree(info); } |