summaryrefslogtreecommitdiffstats
path: root/Documentation/doc-guide
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-02-16 08:48:15 -0500
committerJonathan Corbet <corbet@lwn.net>2018-02-18 18:54:34 -0500
commit3651d452fd19e6d868cf9c639ecd2798a35a014a (patch)
treeabd3e2a7d0746b3e059da719d788a60a566b297f /Documentation/doc-guide
parentbcd3cf0855c561d97146834c46f27aacc90252b4 (diff)
doc-guide: kernel-doc: fix example for nested_foobar struct
There's a missing */ at the end of Kernel docs example. Even adding it, it will still produce 3 warnings: example:33: warning: Function parameter or member 'bar' not described in 'nested_foobar' example:33: warning: Function parameter or member 'bar.st1' not described in 'nested_foobar' example:33: warning: Function parameter or member 'bar.st2' not described in 'nested_foobar' So, make the example more complete and add the missing end of comment there. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/doc-guide')
-rw-r--r--Documentation/doc-guide/kernel-doc.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst
index 2fb7f2bfc245..9fce378dccb2 100644
--- a/Documentation/doc-guide/kernel-doc.rst
+++ b/Documentation/doc-guide/kernel-doc.rst
@@ -250,10 +250,14 @@ It is possible to document nested structs and unions, like::
250 * @memb2: second member of anonymous union/anonymous struct 250 * @memb2: second member of anonymous union/anonymous struct
251 * @memb3: third member of anonymous union/anonymous struct 251 * @memb3: third member of anonymous union/anonymous struct
252 * @memb4: fourth member of anonymous union/anonymous struct 252 * @memb4: fourth member of anonymous union/anonymous struct
253 * @bar: non-anonymous union
254 * @bar.st1: struct st1 inside @bar
255 * @bar.st2: struct st2 inside @bar
253 * @bar.st1.memb1: first member of struct st1 on union bar 256 * @bar.st1.memb1: first member of struct st1 on union bar
254 * @bar.st1.memb2: second member of struct st1 on union bar 257 * @bar.st1.memb2: second member of struct st1 on union bar
255 * @bar.st2.memb1: first member of struct st2 on union bar 258 * @bar.st2.memb1: first member of struct st2 on union bar
256 * @bar.st2.memb2: second member of struct st2 on union bar 259 * @bar.st2.memb2: second member of struct st2 on union bar
260 */
257 struct nested_foobar { 261 struct nested_foobar {
258 /* Anonymous union/struct*/ 262 /* Anonymous union/struct*/
259 union { 263 union {