From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Yacine Belkadi <yacine.belkadi.1@gmail.com>
Cc: "Alan Stern" <stern@rowland.harvard.edu>,
"Jiri Kosina" <jkosina@suse.cz>,
"Sarah Sharp" <sarah.a.sharp@linux.intel.com>,
"Kevin Hilman" <khilman@linaro.org>,
"Alexey Khoroshilov" <khoroshilov@ispras.ru>,
"Thomas Renninger" <trenn@suse.de>,
"Hannes Reinecke" <hare@suse.de>,
"Lan Tianyu" <tianyu.lan@intel.com>,
"Sebastian Andrzej Siewior" <bigeasy@linutronix.de>,
"Ming Lei" <ming.lei@canonical.com>,
"Tülin İzer" <tulinizer@gmail.com>,
"Sachin Kamat" <sachin.kamat@linaro.org>,
"Johan Hovold" <jhovold@gmail.com>, "Kay Sievers" <kay@vrfy.org>,
"Julius Werner" <jwerner@chromium.org>,
"Yuanhan Liu" <yliu.null@gmail.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org
Subject: Re: [PATCH] usb: fix some scripts/kernel-doc warnings
Date: Tue, 6 Aug 2013 06:28:29 +0800 [thread overview]
Message-ID: <20130805222829.GH20884@kroah.com> (raw)
In-Reply-To: <51FFF0B7.3080708@gmail.com>
On Mon, Aug 05, 2013 at 08:36:39PM +0200, Yacine Belkadi wrote:
> On 08/04/2013 11:29 PM, Greg Kroah-Hartman wrote:
> > On Sun, Aug 04, 2013 at 10:05:36PM +0200, Yacine Belkadi wrote:
> >> On 08/03/2013 05:29 AM, Greg Kroah-Hartman wrote:
> >>> On Fri, Aug 02, 2013 at 08:10:04PM +0200, Yacine Belkadi wrote:
> >>>> When building the htmldocs (in verbose mode), scripts/kernel-doc reports the
> >>>> following type of warnings:
> >>>>
> >>>> Warning(drivers/usb/core/usb.c:76): No description found for return value of
> >>>> 'usb_find_alt_setting'
> >>>>
> >>>> Fix them by:
> >>>> - adding some missing descriptions of return values
> >>>> - using "Return" sections for those descriptions
> >>>>
> >>>> Signed-off-by: Yacine Belkadi <yacine.belkadi.1@gmail.com>
> >>>> ---
> >>>>
> >>>> Applied to b3a3a9c441e2c8f6b6760de9331023a7906a4ac6
> >>>
> >>> What does this line mean?
> >>
> >> It's the commit on which I created and applied the patch:
> >>
> >> commit b3a3a9c441e2c8f6b6760de9331023a7906a4ac6
> >> Merge: a582e5f e70e78e
> >> Author: Linus Torvalds <torvalds@linux-foundation.org>
> >> Date: Mon Jul 22 19:07:24 2013 -0700
> >
> > Odd, I've never seen anyone use that before. It's really not needed, so
> > you don't have to do that in the future.
> >
>
> In hindsight, I should probably have used something like:
> "Patch against commit b3a3a9c441e2c8f6b6760de9331023a7906a4ac6".
>
> I thought this information may prove useful in some cases, because of the
> nature of the patch, which only modifies comments and may get out of sync
> with the code.
>
> Here is an example:
> - My local HEAD is at commit c1 when I start creating the patch.
> - Some function f doesn't have a description for its return value. I look
> into the code and deduce the description. So the description I add is based
> on the code at the commit c1.
> - Someone else submits a patch that changes the code of the function f, but
> I don't see it.
> - I send my patch to the maintainer.
> - My patch may apply cleanly on top of the other patch (mine only touched
> the comments), but the description now doesn't match the function's code,
> which is a problem.
>
> I assumed that if I specify the commit on which I worked, it may help the
> maintainer decide whether my patch got invalidated by some other patch that
> was applied first. Continuing with the example: The maintainer sees that I
> worked based on c1, but knows that a patch was applied in the mean time, so
> he/she asks me to update my patch first.
>
> What do you think?
It does make sense, but please use terms that we can understand. If I
see a sha id, I have to go dig through a kernel tree to see what it
represents, which takes time (remember, I deal with thousands of
patches). If you said "Patch based on 3.11-rc1" then I know exactly
what that is, and how to handle it if there are merge errors.
thanks,
greg k-h
next prev parent reply other threads:[~2013-08-05 22:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 18:10 [PATCH] usb: fix some scripts/kernel-doc warnings Yacine Belkadi
2013-08-03 3:29 ` Greg Kroah-Hartman
2013-08-04 20:05 ` Yacine Belkadi
2013-08-04 21:29 ` Greg Kroah-Hartman
2013-08-05 18:36 ` Yacine Belkadi
2013-08-05 22:28 ` Greg Kroah-Hartman [this message]
2013-08-06 17:36 ` Yacine Belkadi
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=20130805222829.GH20884@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=bigeasy@linutronix.de \
--cc=hare@suse.de \
--cc=jhovold@gmail.com \
--cc=jkosina@suse.cz \
--cc=jwerner@chromium.org \
--cc=kay@vrfy.org \
--cc=khilman@linaro.org \
--cc=khoroshilov@ispras.ru \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=ming.lei@canonical.com \
--cc=sachin.kamat@linaro.org \
--cc=sarah.a.sharp@linux.intel.com \
--cc=stern@rowland.harvard.edu \
--cc=tianyu.lan@intel.com \
--cc=trenn@suse.de \
--cc=tulinizer@gmail.com \
--cc=yacine.belkadi.1@gmail.com \
--cc=yliu.null@gmail.com \
/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