Skip to contentSkip to conversation

kobject: export kobj_sysfs_ops

PATCH In review Jeff Mahoney 2 participants 3 messages Oct 21, 2013 – Oct 22, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kobject: export kobj_sysfs_ops

struct kobj_attribute implements the baseline attribute functionality that can be used all over the place. We should export the ops associated with it. I have a series of patches on the linux-btrfs list that depend on using kobj_sysfs_ops rather than re-implement them.

---

 lib/kobject.c |    1 +
 1 file changed, 1 insertion(+)
lib/kobject.c +1 -0
@@ -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.
Signature · 2 lines
Jeff Mahoney
SUSE Labs
maintainer
#1 lore raw
Quoted 4 lines · Jeff Mahoney

struct kobj_attribute implements the baseline attribute functionality that can be used all over the place. We should export the ops associated with it. I have a series of patches on the linux-btrfs list that depend on using kobj_sysfs_ops rather than re-implement them.

If you need this for other patches, would it be easier for you to just take this patch with the btrfs patches so that there's no dependancy on my tree for them?

If so, please add:

to this patch and pass it on, as I have no objection to it.

thanks,

greg k-h

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 4 lines · Jeff Mahoney

struct kobj_attribute implements the baseline attribute functionality that can be used all over the place. We should export the ops associated with it. I have a series of patches on the linux-btrfs list that depend on using kobj_sysfs_ops rather than re-implement them.

If you need this for other patches, would it be easier for you to just take this patch with the btrfs patches so that there's no dependancy on my tree for them?

Yep. This patch is actually posted with that series on the linux-btrfs list. I just wanted to get your S-o-b since it touches kobjects.

Quoted 5 lines

If so, please add:

to this patch and pass it on, as I have no objection to it.

Thanks!

-Jeff

Signature · 2 lines
Jeff Mahoney
SUSE Labs