提交 11265420 编写于 作者: R Randy Dunlap 提交者: Linus Torvalds

kernel-doc: fix plist.h comments

Make kernel-doc comments match macro names.
Correct parameter names in a few places.
Remove '#' from beginning of kernel-doc comment macro names.
Remove extra (erroneous) blank lines in kernel-doc.

Warning(plist.h:100): Cannot understand  * #PLIST_HEAD_INIT - static struct plist_head initializer on line 100 - I thought it was a doc line
Warning(plist.h:112): Cannot understand  * #PLIST_NODE_INIT - static struct plist_node initializer on line 112 - I thought it was a doc line
Warning(plist.h:103): No description found for parameter '_lock'
Warning(plist.h:129): No description found for parameter 'lock'
Warning(plist.h:158): No description found for parameter 'pos'
Warning(plist.h:169): No description found for parameter 'pos'
Warning(plist.h:169): No description found for parameter 'n'
Warning(plist.h:179): No description found for parameter 'mem'

This still leaves one warning & one error that need attention:
Error(plist.h:219): cannot understand prototype: '('
Warning(plist.h): no structured comments found
Acked-by: NInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Cc: Daniel Walker <dwalker@mvista.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c4bbafda
...@@ -97,9 +97,9 @@ struct plist_node { ...@@ -97,9 +97,9 @@ struct plist_node {
#endif #endif
/** /**
* #PLIST_HEAD_INIT - static struct plist_head initializer * PLIST_HEAD_INIT - static struct plist_head initializer
*
* @head: struct plist_head variable name * @head: struct plist_head variable name
* @_lock: lock to initialize for this list
*/ */
#define PLIST_HEAD_INIT(head, _lock) \ #define PLIST_HEAD_INIT(head, _lock) \
{ \ { \
...@@ -109,8 +109,7 @@ struct plist_node { ...@@ -109,8 +109,7 @@ struct plist_node {
} }
/** /**
* #PLIST_NODE_INIT - static struct plist_node initializer * PLIST_NODE_INIT - static struct plist_node initializer
*
* @node: struct plist_node variable name * @node: struct plist_node variable name
* @__prio: initial node priority * @__prio: initial node priority
*/ */
...@@ -122,8 +121,8 @@ struct plist_node { ...@@ -122,8 +121,8 @@ struct plist_node {
/** /**
* plist_head_init - dynamic struct plist_head initializer * plist_head_init - dynamic struct plist_head initializer
*
* @head: &struct plist_head pointer * @head: &struct plist_head pointer
* @lock: list spinlock, remembered for debugging
*/ */
static inline void static inline void
plist_head_init(struct plist_head *head, spinlock_t *lock) plist_head_init(struct plist_head *head, spinlock_t *lock)
...@@ -137,7 +136,6 @@ plist_head_init(struct plist_head *head, spinlock_t *lock) ...@@ -137,7 +136,6 @@ plist_head_init(struct plist_head *head, spinlock_t *lock)
/** /**
* plist_node_init - Dynamic struct plist_node initializer * plist_node_init - Dynamic struct plist_node initializer
*
* @node: &struct plist_node pointer * @node: &struct plist_node pointer
* @prio: initial node priority * @prio: initial node priority
*/ */
...@@ -152,49 +150,46 @@ extern void plist_del(struct plist_node *node, struct plist_head *head); ...@@ -152,49 +150,46 @@ extern void plist_del(struct plist_node *node, struct plist_head *head);
/** /**
* plist_for_each - iterate over the plist * plist_for_each - iterate over the plist
* * @pos: the type * to use as a loop counter
* @pos1: the type * to use as a loop counter. * @head: the head for your list
* @head: the head for your list.
*/ */
#define plist_for_each(pos, head) \ #define plist_for_each(pos, head) \
list_for_each_entry(pos, &(head)->node_list, plist.node_list) list_for_each_entry(pos, &(head)->node_list, plist.node_list)
/** /**
* plist_for_each_entry_safe - iterate over a plist of given type safe * plist_for_each_safe - iterate safely over a plist of given type
* against removal of list entry * @pos: the type * to use as a loop counter
* @n: another type * to use as temporary storage
* @head: the head for your list
* *
* @pos1: the type * to use as a loop counter. * Iterate over a plist of given type, safe against removal of list entry.
* @n1: another type * to use as temporary storage
* @head: the head for your list.
*/ */
#define plist_for_each_safe(pos, n, head) \ #define plist_for_each_safe(pos, n, head) \
list_for_each_entry_safe(pos, n, &(head)->node_list, plist.node_list) list_for_each_entry_safe(pos, n, &(head)->node_list, plist.node_list)
/** /**
* plist_for_each_entry - iterate over list of given type * plist_for_each_entry - iterate over list of given type
* * @pos: the type * to use as a loop counter
* @pos: the type * to use as a loop counter. * @head: the head for your list
* @head: the head for your list. * @mem: the name of the list_struct within the struct
* @member: the name of the list_struct within the struct.
*/ */
#define plist_for_each_entry(pos, head, mem) \ #define plist_for_each_entry(pos, head, mem) \
list_for_each_entry(pos, &(head)->node_list, mem.plist.node_list) list_for_each_entry(pos, &(head)->node_list, mem.plist.node_list)
/** /**
* plist_for_each_entry_safe - iterate over list of given type safe against * plist_for_each_entry_safe - iterate safely over list of given type
* removal of list entry * @pos: the type * to use as a loop counter
*
* @pos: the type * to use as a loop counter.
* @n: another type * to use as temporary storage * @n: another type * to use as temporary storage
* @head: the head for your list. * @head: the head for your list
* @m: the name of the list_struct within the struct. * @m: the name of the list_struct within the struct
*
* Iterate over list of given type, safe against removal of list entry.
*/ */
#define plist_for_each_entry_safe(pos, n, head, m) \ #define plist_for_each_entry_safe(pos, n, head, m) \
list_for_each_entry_safe(pos, n, &(head)->node_list, m.plist.node_list) list_for_each_entry_safe(pos, n, &(head)->node_list, m.plist.node_list)
/** /**
* plist_head_empty - return !0 if a plist_head is empty * plist_head_empty - return !0 if a plist_head is empty
*
* @head: &struct plist_head pointer * @head: &struct plist_head pointer
*/ */
static inline int plist_head_empty(const struct plist_head *head) static inline int plist_head_empty(const struct plist_head *head)
...@@ -204,7 +199,6 @@ static inline int plist_head_empty(const struct plist_head *head) ...@@ -204,7 +199,6 @@ static inline int plist_head_empty(const struct plist_head *head)
/** /**
* plist_node_empty - return !0 if plist_node is not on a list * plist_node_empty - return !0 if plist_node is not on a list
*
* @node: &struct plist_node pointer * @node: &struct plist_node pointer
*/ */
static inline int plist_node_empty(const struct plist_node *node) static inline int plist_node_empty(const struct plist_node *node)
...@@ -216,10 +210,9 @@ static inline int plist_node_empty(const struct plist_node *node) ...@@ -216,10 +210,9 @@ static inline int plist_node_empty(const struct plist_node *node)
/** /**
* plist_first_entry - get the struct for the first entry * plist_first_entry - get the struct for the first entry
* * @head: the &struct plist_head pointer
* @ptr: the &struct plist_head pointer. * @type: the type of the struct this is embedded in
* @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct
* @member: the name of the list_struct within the struct.
*/ */
#ifdef CONFIG_DEBUG_PI_LIST #ifdef CONFIG_DEBUG_PI_LIST
# define plist_first_entry(head, type, member) \ # define plist_first_entry(head, type, member) \
...@@ -234,7 +227,6 @@ static inline int plist_node_empty(const struct plist_node *node) ...@@ -234,7 +227,6 @@ static inline int plist_node_empty(const struct plist_node *node)
/** /**
* plist_first - return the first node (and thus, highest priority) * plist_first - return the first node (and thus, highest priority)
*
* @head: the &struct plist_head pointer * @head: the &struct plist_head pointer
* *
* Assumes the plist is _not_ empty. * Assumes the plist is _not_ empty.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册