]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: fix script for generating man page on BPF helpers
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 10 May 2019 14:51:22 +0000 (15:51 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 12 May 2019 23:12:45 +0000 (01:12 +0200)
commit4050de6371c5b1590046e3e40c8cd7332bc723c2
tree0b5a0a9f2d49865172d02691e162ceca6802fa6b
parent231378bf381059fb7daba8679f3f5cd5e1f401b3
bpf: fix script for generating man page on BPF helpers

The script broke on parsing function prototype for bpf_strtoul(). This
is because the last argument for the function is a pointer to an
"unsigned long". The current version of the script only accepts "const"
and "struct", but not "unsigned", at the beginning of argument types
made of several words.

One solution could be to add "unsigned" to the list, but the issue could
come up again in the future (what about "long int"?). It turns out we do
not need to have such restrictions on the words: so let's simply accept
any series of words instead.

Reported-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
scripts/bpf_helpers_doc.py