Skip to content

Commit 4ce7d68

Browse files
AdityaSrivastanakryiko
authored andcommitted
samples: bpf: Ix kernel-doc syntax in file header
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments. The header for samples/bpf/ibumad_kern.c follows this syntax, but the content inside does not comply with kernel-doc. This line was probably not meant for kernel-doc parsing, but is parsed due to the presence of kernel-doc like comment syntax(i.e, '/**'), which causes unexpected warnings from kernel-doc: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * ibumad BPF sample kernel side Provide a simple fix by replacing this occurrence with general comment format, i.e. '/*', to prevent kernel-doc from parsing it. Signed-off-by: Aditya Srivastava <yashsri421@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Link: https://lore.kernel.org/bpf/20210523151408.22280-1-yashsri421@gmail.com
1 parent 9f0c317 commit 4ce7d68

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎samples/bpf/ibumad_kern.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
22

3-
/**
3+
/*
44
* ibumad BPF sample kernel side
55
*
66
* This program is free software; you can redistribute it and/or

‎samples/bpf/ibumad_user.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
22

3-
/**
3+
/*
44
* ibumad BPF sample user side
55
*
66
* This program is free software; you can redistribute it and/or

0 commit comments

Comments
 (0)