From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sysfs: add sysfs_create/remove_groups()
Date: Wed, 21 Aug 2013 13:44:08 -0700 [thread overview]
Message-ID: <20130821204408.GA4546@kroah.com> (raw)
In-Reply-To: <5215254B.7000000@infradead.org>
On Wed, Aug 21, 2013 at 01:38:35PM -0700, Randy Dunlap wrote:
> On 08/21/13 13:35, Greg Kroah-Hartman wrote:
> >
> > --- a/fs/sysfs/group.c
> > +++ b/fs/sysfs/group.c
> > @@ -131,6 +131,39 @@ int sysfs_create_group(struct kobject *k
> > }
> >
> > /**
> > + * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups
> > + * @kobj: The kobject to create the group on
> > + * @groups: The attribute groups to create, NULL terminated
> > + *
> > + * This function creates a bunch of attribute groups. If an error occurs when
> > + * creating a group, all previously created groups will be removed, unwinding
> > + * everything back to the original state when this function was called.
> > + * It will explicitly warn and error if any of the attribute files being
> > + * created already exist.
> > + *
> > + * Returns 0 on success or error.
>
> ambiguous. How about:
> Returns 0 on success or error code on error.
Ok, I also forgot to export these symbols, so I'll go do a v2 of the
patch, thanks for the review.
greg k-h
next prev parent reply other threads:[~2013-08-21 20:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 20:35 Greg Kroah-Hartman
2013-08-21 20:38 ` Randy Dunlap
2013-08-21 20:44 ` Greg Kroah-Hartman [this message]
2013-08-21 20:47 ` Greg Kroah-Hartman
2013-08-22 4:55 ` Anthony Foiani
2013-08-22 16:22 ` Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130821204408.GA4546@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome