All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init()
@ 2015-04-29 17:01 Fabian Frederick
  2015-05-14 10:41 ` Daniel Baluta
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Frederick @ 2015-04-29 17:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Fabian Frederick, Joel Becker

config_item_init() is only used in item.c

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/configfs/item.c       | 3 +--
 include/linux/configfs.h | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/configfs/item.c b/fs/configfs/item.c
index e65f9ff..4d6a30e 100644
--- a/fs/configfs/item.c
+++ b/fs/configfs/item.c
@@ -47,12 +47,11 @@ static void config_item_release(struct kref *kref);
  *	config_item_init - initialize item.
  *	@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);
 	INIT_LIST_HEAD(&item->ci_entry);
 }
-EXPORT_SYMBOL(config_item_init);
 
 /**
  *	config_item_set_name - Set the name of an item
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index 34025df..c9e5c57 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -71,7 +71,6 @@ static inline char *config_item_name(struct config_item * item)
 	return item->ci_name;
 }
 
-extern void config_item_init(struct config_item *);
 extern void config_item_init_type_name(struct config_item *item,
 				       const char *name,
 				       struct config_item_type *type);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init()
  2015-04-29 17:01 [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init() Fabian Frederick
@ 2015-05-14 10:41 ` Daniel Baluta
  2015-05-14 19:14   ` Fabian Frederick
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Baluta @ 2015-05-14 10:41 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: Linux Kernel Mailing List, Andrew Morton, Joel Becker

On Wed, Apr 29, 2015 at 8:01 PM, Fabian Frederick <fabf@skynet.be> wrote:
> config_item_init() is only used in item.c
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Nack! Have a look at drivers/usb/gadget/configfs.c
> ---
>  fs/configfs/item.c       | 3 +--
>  include/linux/configfs.h | 1 -
>  2 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/fs/configfs/item.c b/fs/configfs/item.c
> index e65f9ff..4d6a30e 100644
> --- a/fs/configfs/item.c
> +++ b/fs/configfs/item.c
> @@ -47,12 +47,11 @@ static void config_item_release(struct kref *kref);
>   *     config_item_init - initialize item.
>   *     @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);
>         INIT_LIST_HEAD(&item->ci_entry);
>  }
> -EXPORT_SYMBOL(config_item_init);
>
>  /**
>   *     config_item_set_name - Set the name of an item
> diff --git a/include/linux/configfs.h b/include/linux/configfs.h
> index 34025df..c9e5c57 100644
> --- a/include/linux/configfs.h
> +++ b/include/linux/configfs.h
> @@ -71,7 +71,6 @@ static inline char *config_item_name(struct config_item * item)
>         return item->ci_name;
>  }
>
> -extern void config_item_init(struct config_item *);
>  extern void config_item_init_type_name(struct config_item *item,
>                                        const char *name,
>                                        struct config_item_type *type);
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init()
  2015-05-14 10:41 ` Daniel Baluta
@ 2015-05-14 19:14   ` Fabian Frederick
  2015-05-15  8:48     ` Daniel Baluta
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Frederick @ 2015-05-14 19:14 UTC (permalink / raw)
  To: Daniel Baluta; +Cc: Andrew Morton, Joel Becker, Linux Kernel Mailing List



> On 14 May 2015 at 12:41 Daniel Baluta <daniel.baluta@gmail.com> wrote:
>
>
> On Wed, Apr 29, 2015 at 8:01 PM, Fabian Frederick <fabf@skynet.be> wrote:
> > config_item_init() is only used in item.c
> >
> > Signed-off-by: Fabian Frederick <fabf@skynet.be>
>
> Nack! Have a look at drivers/usb/gadget/configfs.c

That file only uses config_item_init_type_name() not config_item_init().

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init()
  2015-05-14 19:14   ` Fabian Frederick
@ 2015-05-15  8:48     ` Daniel Baluta
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Baluta @ 2015-05-15  8:48 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: Andrew Morton, Joel Becker, Linux Kernel Mailing List

On Thu, May 14, 2015 at 10:14 PM, Fabian Frederick <fabf@skynet.be> wrote:
>
>
>> On 14 May 2015 at 12:41 Daniel Baluta <daniel.baluta@gmail.com> wrote:
>>
>>
>> On Wed, Apr 29, 2015 at 8:01 PM, Fabian Frederick <fabf@skynet.be> wrote:
>> > config_item_init() is only used in item.c
>> >
>> > Signed-off-by: Fabian Frederick <fabf@skynet.be>
>>
>> Nack! Have a look at drivers/usb/gadget/configfs.c
>
> That file only uses config_item_init_type_name() not config_item_init().

Oh, that's right. My fault!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-15  8:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 17:01 [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init() Fabian Frederick
2015-05-14 10:41 ` Daniel Baluta
2015-05-14 19:14   ` Fabian Frederick
2015-05-15  8:48     ` Daniel Baluta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.