From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] KernelDoc
Date: Thu, 27 Sep 2012 19:28:06 -0500 [thread overview]
Message-ID: <1348792086.18375.31@snotra> (raw)
In-Reply-To: <201209261726.55611.marex@denx.de> (from marex@denx.de on Wed Sep 26 10:26:55 2012)
On 09/26/2012 10:26:55 AM, Marek Vasut wrote:
> Dear Wolfgang Denk,
>
> > Dear Marek,
> > - Will we make this mandatory? So that we will reject all new code
> > that is not documented according to kernel-doc rules?
>
> Yes please, make it mandatory. Otherwise people won't obey and the
> documentation
> will suffer ... and all this would be meaningless.
-1
The project you're copying from doesn't make it mandatory. Why should
U-Boot? What would it be mandatory for? Major public APIs?
Semi-private functions shared between a few related files? Every
little static function?
We already have too many arbitrary rules with inconsistent
enforcement. What's wrong with just encouraging it where appropriate,
and insisting only if the maintainer deems it important enough in
context?
OTOH, I don't think patches should be rejected for having that extra
asterisk, regardless of whether we encourage kerneldoc in U-Boot
(unless we adopt a different tool with different requirements).
Kerneldoc-style headers are still useful documentation even if we don't
use the actual kerneldoc tool, code can be shared between Linux and
U-Boot, people can maintain their existing Linux habits, etc. It's a
weak argument to point to the CodingStyle document as forbidding it
when it's clear that the project that CodingStyle comes from uses this
all over the place.
> > If I change the major part of an existing function (without
> changing
> > it's calling interface), am I obligued to add kernel-doc comments?
>
> Yes. Even though major vs. minor change seems pretty vague, common
> sense shall
> be applied here.
And then someone's going to complain that the commenting should be a
separate patch... more red tape. :-P
-Scott
next prev parent reply other threads:[~2012-09-28 0:28 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 20:46 [U-Boot] KernelDoc Marek Vasut
2012-09-26 6:50 ` Prabhakar Lad
2012-09-26 7:12 ` Wolfgang Denk
2012-09-26 7:23 ` Prabhakar Lad
2012-09-26 10:07 ` Wolfgang Denk
2012-09-26 7:17 ` Wolfgang Denk
2012-09-26 15:26 ` Marek Vasut
2012-09-26 18:50 ` Joe Hershberger
2012-09-26 19:05 ` Marek Vasut
2012-09-26 19:54 ` Wolfgang Denk
2012-09-26 19:58 ` Marek Vasut
2012-09-26 20:57 ` Wolfgang Denk
2012-09-26 21:31 ` Tom Rini
2012-09-26 23:38 ` Marek Vasut
2012-10-01 8:54 ` Wolfgang Denk
2012-10-01 9:07 ` Marek Vasut
2012-10-01 10:35 ` Wolfgang Denk
2012-10-01 10:37 ` Marek Vasut
2012-10-09 22:49 ` Tom Rini
2012-10-09 23:35 ` Marek Vasut
2012-10-14 20:26 ` Marek Vasut
2012-09-26 20:00 ` Tom Rini
2012-09-27 6:19 ` Stefan Roese
2012-09-27 17:26 ` Tom Rini
2012-09-27 17:28 ` Fabio Estevam
2012-09-27 23:50 ` Graeme Russ
2012-09-28 0:28 ` Marek Vasut
2012-09-28 0:28 ` Scott Wood [this message]
2012-09-28 0:44 ` Marek Vasut
2012-09-26 19:05 ` Tom Rini
2012-09-26 19:10 ` Marek Vasut
2012-09-26 19:46 ` Wolfgang Denk
2012-09-26 19:54 ` Marek Vasut
2012-09-26 20:49 ` Wolfgang Denk
2012-09-26 23:36 ` Marek Vasut
2012-09-26 19:57 ` Tom Rini
2012-09-26 23:39 ` Marek Vasut
2012-09-28 19:48 ` Marek Vasut
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=1348792086.18375.31@snotra \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/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