kobject: export kobj_sysfs_ops
Subsystems (2)
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
Greg KH
maintainerQuoted 4 lines · Jeff Mahoney
struct
kobj_attributeimplements 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 usingkobj_sysfs_opsrather 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
Quoted 9 lines · Greg KH
Quoted 4 lines · Jeff Mahoney
struct
kobj_attributeimplements 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 usingkobj_sysfs_opsrather 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:
Signed-off-by Greg Kroah-Hartman <[email protected]>to this patch and pass it on, as I have no objection to it.
Thanks!
-Jeff
Signature · 2 lines
Jeff Mahoney SUSE Labs