From: Jonathan Corbet <corbet@lwn.net>
To: Simon Glass <sjg@chromium.org>, linux-doc@vger.kernel.org
Cc: Mark Rutland <mark.rutland@arm.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: Doc style for method functions
Date: Wed, 16 Aug 2023 11:15:28 -0600 [thread overview]
Message-ID: <877cpusybz.fsf@meer.lwn.net> (raw)
In-Reply-To: <CAPnjgZ0vPwd9v+V8Pg5Bo87OELD-vokB7ZrvU3Bv5dQ_O9z6Sg@mail.gmail.com>
Simon Glass <sjg@chromium.org> writes:
> Hi Jonathan,
>
> I would like to do something like this:
>
> struct part_driver {
> /**
> * get_info() - Get information about a partition
>
> ^ causes error
>
> *
> * @desc: Block device descriptor
> * @part: Partition number (1 = first)
> * @info: Returns partition information
> */
> int (*get_info)(struct blk_desc *desc, int part, struct
> disk_partition *info);
> ...
> };
>
> But this gives:
>
> scripts/kernel-doc:292:
> print STDERR "Incorrect use of kernel-doc format: $_";
>
> Without the brackets on get_info() it works OK. What is the purpose of
> that check, please?
That's how the kerneldoc syntax was defined, well before my time as the
maintainer. This could be relaxed, I guess, but one would have to look
at the parsing code to be sure that the right thing happens all the way
through the process. I'm not entirely sure it's worth it...
Thanks,
jon
next prev parent reply other threads:[~2023-08-16 17:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 17:05 Doc style for method functions Simon Glass
2023-08-16 17:15 ` Jonathan Corbet [this message]
2023-08-16 17:47 ` Simon Glass
2023-08-17 16:36 ` Heinrich Schuchardt
2023-08-18 14:59 ` Simon Glass
2023-08-21 19:45 ` Heinrich Schuchardt
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=877cpusybz.fsf@meer.lwn.net \
--to=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.