All of lore.kernel.org
 help / color / mirror / Atom feed
* Doc style for method functions
@ 2023-08-16 17:05 Simon Glass
  2023-08-16 17:15 ` Jonathan Corbet
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Glass @ 2023-08-16 17:05 UTC (permalink / raw)
  To: linux-doc
  Cc: Jonathan Corbet, Mark Rutland, Heinrich Schuchardt,
	U-Boot Mailing List

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?

Regards,
Simon

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

end of thread, other threads:[~2023-08-21 19:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16 17:05 Doc style for method functions Simon Glass
2023-08-16 17:15 ` Jonathan Corbet
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

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.