• Bhumika Goyal's avatar
    configfs: make ci_type field, some pointers and function arguments const · aa293583
    Bhumika Goyal authored
    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: default avatarBhumika Goyal <bhumirks@gmail.com>
    Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Last commit
Last update
Kconfig Loading commit data...
Makefile Loading commit data...
configfs_internal.h Loading commit data...
dir.c Loading commit data...
file.c Loading commit data...
inode.c Loading commit data...
item.c Loading commit data...
mount.c Loading commit data...
symlink.c Loading commit data...