scripts/bpf: Emit an #error directive known types list needs updating
authorJakub Sitnicki <jakub@cloudflare.com>
Wed, 16 Oct 2019 08:58:11 +0000 (10:58 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 Oct 2019 12:30:03 +0000 (14:30 +0200)
commit456a513bb5d494f169271b16334049d50c7e630b
tree7362eb620b49de91b4e160dedf8311251c7220fc
parent5bc60de50dfea235634fdf38cbc992fb968d113b
scripts/bpf: Emit an #error directive known types list needs updating

Make the compiler report a clear error when bpf_helpers_doc.py needs
updating rather than rely on the fact that Clang fails to compile
English:

../../../lib/bpf/bpf_helper_defs.h:2707:1: error: unknown type name 'Unrecognized'
Unrecognized type 'struct bpf_inet_lookup', please add it to known types!

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191016085811.11700-1-jakub@cloudflare.com
scripts/bpf_helpers_doc.py