configfs: make ci_type field, some pointers and function arguments const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 16 Oct 2017 15:18:40 +0000 (17:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 14:15:16 +0000 (16:15 +0200)
commitaa293583f0fe8b1634aeadbea06b4d0d04c30a95
tree70dc750843513c42c3ff5327371b004baf3949de
parent84c43674f4c0625971cbb03fbe339ec2723ef10e
configfs: make ci_type field, some pointers and function arguments const

The ci_type field of the config_item structure do not modify the fields
of the config_item_type structure it points to. And the other pointers
initialized with ci_type do not modify the fields as well.
So, make the ci_type field and the pointers initialized with ci_type
as const.

Make the struct config_item_type *type function argument of functions
config_{item/group}_init_type_name const as the argument in both the
functions is only stored in the ci_type field of a config_item structure
which is now made const.
Make the argument of configfs_register_default_group const as it is
only passed to the argument of the function config_group_init_type_name
which is now const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/configfs/dir.c
fs/configfs/item.c
fs/configfs/symlink.c
include/linux/configfs.h