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

* Re: [PATCH] kobject: export kobj_sysfs_ops
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2013-10-22  6:03 UTC (permalink / raw)
  To: Jeff Mahoney; +Cc: Linux Kernel Maling List

On Mon, Oct 21, 2013 at 05:22:44PM -0400, 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. 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:

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

thanks,

greg k-h

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

* Re: [PATCH] kobject: export kobj_sysfs_ops
  2013-10-22  6:03 ` Greg KH
@ 2013-10-22 14:42   ` Jeff Mahoney
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Mahoney @ 2013-10-22 14:42 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel Maling List

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

On 10/22/13 2:03 AM, Greg KH wrote:
> On Mon, Oct 21, 2013 at 05:22:44PM -0400, 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. 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.

> If so, please add:
> 
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> 
> to this patch and pass it on, as I have no objection to it.

Thanks!

-Jeff

-- 
Jeff Mahoney
SUSE Labs


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 841 bytes --]

^ 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