configfs: unexport/make static config_item_init()

config_item_init() is only used in item.c

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: 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:
Fabian Frederick 2015-06-24 16:54:51 -07:00 committed by Linus Torvalds
parent b0cbeee72f
commit 5286d20c4e
2 changed files with 1 additions and 3 deletions

View File

@ -47,12 +47,11 @@ static void config_item_release(struct kref *kref);
* config_item_init - initialize item. * config_item_init - initialize item.
* @item: item in question. * @item: item in question.
*/ */
void config_item_init(struct config_item *item) static 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

View File

@ -71,7 +71,6 @@ static inline char *config_item_name(struct config_item * item)
return item->ci_name; return item->ci_name;
} }
extern void config_item_init(struct config_item *);
extern void config_item_init_type_name(struct config_item *item, extern void config_item_init_type_name(struct config_item *item,
const char *name, const char *name,
struct config_item_type *type); struct config_item_type *type);