]> www.infradead.org Git - users/hch/misc.git/commitdiff
list.h: add missing kernel-doc for basic macros
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 19 Aug 2025 07:55:07 +0000 (00:55 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:48 +0000 (17:32 -0700)
kernel-doc for the basic LIST_HEAD() and LIST_HEAD_INIT() macros has been
missing forever (i.e., since git).  Add them for completeness.

Link: https://lkml.kernel.org/r/20250819075507.113639-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/list.h

index e7e28afd28f8eef94ab6baec77e69ea104ba0391..ca63bdea6c1a57de498cd9aaac623cdb916d774d 100644 (file)
  * using the generic single-entry routines.
  */
 
+/**
+ * LIST_HEAD_INIT - initialize a &struct list_head's links to point to itself
+ * @name: name of the list_head
+ */
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
 
+/**
+ * LIST_HEAD - definition of a &struct list_head with initialization values
+ * @name: name of the list_head
+ */
 #define LIST_HEAD(name) \
        struct list_head name = LIST_HEAD_INIT(name)