Skip to content

Commit aec1dc9

Browse files
anakryikoborkmann
authored andcommitted
net/ipv4: Fix linux/in.h header dependencies
__DECLARE_FLEX_ARRAY is defined in include/uapi/linux/stddef.h but doesn't seem to be explicitly included from include/uapi/linux/in.h, which breaks BPF selftests builds (once we sync linux/stddef.h into tools/include directory in the next patch). Fix this by explicitly including linux/stddef.h. Given this affects BPF CI and bpf tree, targeting this for bpf tree. Fixes: 5854a09 ("net/ipv4: Use __DECLARE_FLEX_ARRAY() helper") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Cc: Gustavo A. R. Silva <[email protected]> Cc: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 34de8e6 commit aec1dc9

File tree

1 file changed

+1
-0
lines changed
  • include/uapi/linux

1 file changed

+1
-0
lines changed

include/uapi/linux/in.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define _UAPI_LINUX_IN_H
2121

2222
#include <linux/types.h>
23+
#include <linux/stddef.h>
2324
#include <linux/libc-compat.h>
2425
#include <linux/socket.h>
2526

0 commit comments

Comments
 (0)