fs/configs/item.c: kernel-doc fixes + clean-up
Fix function parameter documentation EXPORT_SYMBOLS moved after corresponding functions Small coding style and checkpatch warning fixes Signed-off-by: Fabian Frederick <fabf@skynet.be> Acked-by: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2accff4ef5
commit
f6b1fe7c27
1 changed files with 28 additions and 30 deletions
|
@ -52,11 +52,12 @@ void config_item_init(struct config_item * item)
|
||||||
kref_init(&item->ci_kref);
|
kref_init(&item->ci_kref);
|
||||||
INIT_LIST_HEAD(&item->ci_entry);
|
INIT_LIST_HEAD(&item->ci_entry);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(config_item_init);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* config_item_set_name - Set the name of an item
|
* config_item_set_name - Set the name of an item
|
||||||
* @item: item.
|
* @item: item.
|
||||||
* @name: name.
|
* @fmt: The vsnprintf()'s format string.
|
||||||
*
|
*
|
||||||
* If strlen(name) >= CONFIGFS_ITEM_NAME_LEN, then use a
|
* If strlen(name) >= CONFIGFS_ITEM_NAME_LEN, then use a
|
||||||
* dynamically allocated string that @item->ci_name points to.
|
* dynamically allocated string that @item->ci_name points to.
|
||||||
|
@ -109,7 +110,6 @@ int config_item_set_name(struct config_item * item, const char * fmt, ...)
|
||||||
Done:
|
Done:
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_SYMBOL(config_item_set_name);
|
EXPORT_SYMBOL(config_item_set_name);
|
||||||
|
|
||||||
void config_item_init_type_name(struct config_item *item,
|
void config_item_init_type_name(struct config_item *item,
|
||||||
|
@ -137,6 +137,7 @@ struct config_item * config_item_get(struct config_item * item)
|
||||||
kref_get(&item->ci_kref);
|
kref_get(&item->ci_kref);
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(config_item_get);
|
||||||
|
|
||||||
static void config_item_cleanup(struct config_item *item)
|
static void config_item_cleanup(struct config_item *item)
|
||||||
{
|
{
|
||||||
|
@ -172,16 +173,18 @@ void config_item_put(struct config_item * item)
|
||||||
if (item)
|
if (item)
|
||||||
kref_put(&item->ci_kref, config_item_release);
|
kref_put(&item->ci_kref, config_item_release);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(config_item_put);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* config_group_init - initialize a group for use
|
* config_group_init - initialize a group for use
|
||||||
* @k: group
|
* @group: config_group
|
||||||
*/
|
*/
|
||||||
void config_group_init(struct config_group *group)
|
void config_group_init(struct config_group *group)
|
||||||
{
|
{
|
||||||
config_item_init(&group->cg_item);
|
config_item_init(&group->cg_item);
|
||||||
INIT_LIST_HEAD(&group->cg_children);
|
INIT_LIST_HEAD(&group->cg_children);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(config_group_init);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* config_group_find_item - search for item in group.
|
* config_group_find_item - search for item in group.
|
||||||
|
@ -208,9 +211,4 @@ struct config_item *config_group_find_item(struct config_group *group,
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_SYMBOL(config_item_init);
|
|
||||||
EXPORT_SYMBOL(config_group_init);
|
|
||||||
EXPORT_SYMBOL(config_item_get);
|
|
||||||
EXPORT_SYMBOL(config_item_put);
|
|
||||||
EXPORT_SYMBOL(config_group_find_item);
|
EXPORT_SYMBOL(config_group_find_item);
|
||||||
|
|
Loading…
Add table
Reference in a new issue