diff mbox

[02/13] kobject: export kobj_sysfs_ops

Message ID 20131021212006.467949781@suse.com
State New, archived
Headers show

Commit Message

Jeff Mahoney Oct. 21, 2013, 9:19 p.m. UTC
struct kobj_attribute implements the baseline attribute functionality
that can be used all over the place. We should export the ops associated
with it.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---

 lib/kobject.c |    1 +
 1 file changed, 1 insertion(+)





--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Jeff Mahoney Oct. 22, 2013, 2:44 p.m. UTC | #1
On 10/21/13 5:19 PM, Jeff Mahoney wrote:
> struct kobj_attribute implements the baseline attribute functionality
> that can be used all over the place. We should export the ops associated
> with it.
> 
> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
> ---
> 
>  lib/kobject.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- a/lib/kobject.c	2013-10-21 16:09:51.868220920 -0400
> +++ b/lib/kobject.c	2013-10-21 16:10:00.216037635 -0400
> @@ -726,6 +726,7 @@ const struct sysfs_ops kobj_sysfs_ops =
>  	.show	= kobj_attr_show,
>  	.store	= kobj_attr_store,
>  };
> +EXPORT_SYMBOL_GPL(kobj_sysfs_ops);
>  
>  /**
>   * kset_register - initialize and add a kset.
> 
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

I posted this one on LKML, CC'ing Greg, and he gave his:
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-Jeff
diff mbox

Patch

--- a/lib/kobject.c	2013-10-21 16:09:51.868220920 -0400
+++ b/lib/kobject.c	2013-10-21 16:10:00.216037635 -0400
@@ -726,6 +726,7 @@  const struct sysfs_ops kobj_sysfs_ops =
 	.show	= kobj_attr_show,
 	.store	= kobj_attr_store,
 };
+EXPORT_SYMBOL_GPL(kobj_sysfs_ops);
 
 /**
  * kset_register - initialize and add a kset.