]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bpf, docs: Fix non-standard line break
authorWangYuli <wangyuli@uniontech.com>
Wed, 23 Apr 2025 03:06:32 +0000 (11:06 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 24 Apr 2025 14:46:04 +0000 (07:46 -0700)
Even though the kernel's coding-style document does not explicitly
state this, we generally put a newline after the semicolon of every
C language statement to enhance code readability.

Adjust the placement of newlines to adhere to this convention.

Reported-by: Chen Linxuan <chenlinxuan@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Link: https://lore.kernel.org/r/DB66473733449DB0+20250423030632.17626-1-wangyuli@uniontech.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/bpf/bpf_iterators.rst

index 7f514cb6b0525ac8425f326ed315880cf6941e7f..385cd05aabf581efdbce343df0440dcacc9e6915 100644 (file)
@@ -323,8 +323,8 @@ Now, in the userspace program, pass the pointer of struct to the
 
 ::
 
-  link = bpf_program__attach_iter(prog, &opts); iter_fd =
-  bpf_iter_create(bpf_link__fd(link));
+  link = bpf_program__attach_iter(prog, &opts);
+  iter_fd = bpf_iter_create(bpf_link__fd(link));
 
 If both *tid* and *pid* are zero, an iterator created from this struct
 ``bpf_iter_attach_opts`` will include every opened file of every task in the