Skip to content

Commit

Permalink
samples: bpf: Ix kernel-doc syntax in file header
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
AdityaSrivast authored and anakryiko committed May 25, 2021
1 parent 9f0c317 commit 4ce7d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/bpf/ibumad_kern.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB

/**
/*
* ibumad BPF sample kernel side
*
* This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion samples/bpf/ibumad_user.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB

/**
/*
* ibumad BPF sample user side
*
* This program is free software; you can redistribute it and/or
Expand Down

0 comments on commit 4ce7d68

Please sign in to comment.