aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBagas Sanjaya <[email protected]>2023-02-15 19:32:52 +0700
committerAlexei Starovoitov <[email protected]>2023-02-15 08:43:51 -0800
commite2d323a1f009cbeb4fbc0bad81bf44d6401bd359 (patch)
tree840cca9df92614ff975f4d68e2bd68bafaa0ac57
parent1f5dfcc78ab4cc06ce7dac9de6c1ed361fde7119 (diff)
Documentation: bpf: Add missing line break separator in node_data struct code block
Stephen Rothwell reported htmldocs warning when merging bpf-next tree, which was the same warning as reported by kernel test robot: Documentation/bpf/graph_ds_impl.rst:62: ERROR: Error in "code-block" directive: maximum 1 argument(s) allowed, 12 supplied. The error is due to Sphinx confuses node_data struct declaration with code-block directive option. Fix the warning by separating the code-block marker with node_data struct declaration. Link: https://lore.kernel.org/linux-next/[email protected]/ Link: https://lore.kernel.org/linux-doc/[email protected]/ Fixes: c31315c3aa0929 ("bpf, documentation: Add graph documentation for non-owning refs") Reported-by: Stephen Rothwell <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Bagas Sanjaya <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
-rw-r--r--Documentation/bpf/graph_ds_impl.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/bpf/graph_ds_impl.rst b/Documentation/bpf/graph_ds_impl.rst
index 8bbf1815efe7..61274622b71d 100644
--- a/Documentation/bpf/graph_ds_impl.rst
+++ b/Documentation/bpf/graph_ds_impl.rst
@@ -60,6 +60,7 @@ The new-style data structures are intrusive and are defined similarly to their
vanilla kernel counterparts:
.. code-block:: c
+
struct node_data {
long key;
long data;