aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-05-25 23:33:19 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-28 17:40:58 +0200
commit53c8036cb715f3577a7fe1db6e6ad06e8697b36f (patch)
treeb8dcafa05c4731dbd10d7b0ea72440d10d13e2f3 /net/ipv4/udp.c
parentlibbpf: Install btf.h with libbpf (diff)
downloadlinux-dev-53c8036cb715f3577a7fe1db6e6ad06e8697b36f.tar.xz
linux-dev-53c8036cb715f3577a7fe1db6e6ad06e8697b36f.zip
bpf: btf: avoid -Wreturn-type warning
gcc warns about a noreturn function possibly returning in some configurations: kernel/bpf/btf.c: In function 'env_type_is_resolve_sink': kernel/bpf/btf.c:729:1: error: control reaches end of non-void function [-Werror=return-type] Using BUG() instead of BUG_ON() avoids that warning and otherwise does the exact same thing. Fixes: eb3f595dab40 ("bpf: btf: Validate type reference") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions