public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kobject: export kobj_sysfs_ops
@ 2013-10-21 21:22 Jeff Mahoney
  2013-10-22  6:03 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Mahoney @ 2013-10-21 21:22 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel Maling List

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.

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.



-- 
Jeff Mahoney
SUSE Labs

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

end of thread, other threads:[~2013-10-22 14:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21 21:22 [PATCH] kobject: export kobj_sysfs_ops Jeff Mahoney
2013-10-22  6:03 ` Greg KH
2013-10-22 14:42   ` Jeff Mahoney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox