Hi Tom,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Tom-Herbert/txhash-Make-hash-ret...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
2a2b6e3640c43a808dcb5226963e2cc0669294b1
config: alpha-randconfig-r033-20210809 (attached as .config)
compiler: alpha-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/c622a47fb5a95eba759d650cba863ff96...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Tom-Herbert/txhash-Make-hash-rethink-configurable-and-change-the-default/20210810-025605
git checkout c622a47fb5a95eba759d650cba863ff963bb1562
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir
ARCH=alpha SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/net/net_namespace.h:16,
from include/linux/netdevice.h:37,
from include/linux/if_vlan.h:10,
from include/linux/filter.h:21,
from kernel/bpf/core.c:21:
> include/net/netns/core.h:14:2: error: expected
specifier-qualifier-list before 'unsigend'
14 | unsigend int
sysctl_txrehash_mode;
| ^~~~~~~~
kernel/bpf/core.c:1358:12: warning: no previous prototype for
'bpf_probe_read_kernel' [-Wmissing-prototypes]
1358 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from include/net/net_namespace.h:16,
from include/linux/netdevice.h:37,
from include/trace/events/xdp.h:8,
from include/linux/bpf_trace.h:5,
from kernel/bpf/syscall.c:5:
> include/net/netns/core.h:14:2: error: expected
specifier-qualifier-list before 'unsigend'
14 | unsigend int
sysctl_txrehash_mode;
| ^~~~~~~~
--
In file included from include/net/net_namespace.h:16,
from include/linux/netdevice.h:37,
from include/linux/if_vlan.h:10,
from include/linux/filter.h:21,
from include/linux/bpf_verifier.h:9,
from kernel/bpf/verifier.c:12:
> include/net/netns/core.h:14:2: error: expected
specifier-qualifier-list before 'unsigend'
14 | unsigend int
sysctl_txrehash_mode;
| ^~~~~~~~
In file included from include/linux/bpf_verifier.h:9,
from kernel/bpf/verifier.c:12:
kernel/bpf/verifier.c: In function 'jit_subprogs':
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'unsigned int (*)(const void *, const struct bpf_insn *)' to 'u64 (*)(u64,
u64, u64, u64, u64)' {aka 'long long unsigned int (*)(long long unsigned int,
long long unsigned int, long long unsigned int, long long unsigned int, long long
unsigned int)'} [-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12461:16: note: in expansion of macro 'BPF_CAST_CALL'
12461 | insn->imm = BPF_CAST_CALL(func[subprog]->bpf_func) -
| ^~~~~~~~~~~~~
kernel/bpf/verifier.c: In function 'do_misc_fixups':
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'void * (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64,
u64, u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long
unsigned int, long long unsigned int, long long unsigned int, long long unsigned
int)'} [-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12942:17: note: in expansion of macro 'BPF_CAST_CALL'
12942 | insn->imm = BPF_CAST_CALL(ops->map_lookup_elem) -
| ^~~~~~~~~~~~~
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'int (* const)(struct bpf_map *, void *, void *, u64)' {aka 'int (*
const)(struct bpf_map *, void *, void *, long long unsigned int)'} to 'u64
(*)(u64, u64, u64, u64, u64)' {aka 'long long unsigned int (*)(long long
unsigned int, long long unsigned int, long long unsigned int, long long unsigned int,
long long unsigned int)'} [-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12946:17: note: in expansion of macro 'BPF_CAST_CALL'
12946 | insn->imm = BPF_CAST_CALL(ops->map_update_elem) -
| ^~~~~~~~~~~~~
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'int (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12950:17: note: in expansion of macro 'BPF_CAST_CALL'
12950 | insn->imm = BPF_CAST_CALL(ops->map_delete_elem) -
| ^~~~~~~~~~~~~
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'int (* const)(struct bpf_map *, void *, u64)' {aka 'int (* const)(struct
bpf_map *, void *, long long unsigned int)'} to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12954:17: note: in expansion of macro 'BPF_CAST_CALL'
12954 | insn->imm = BPF_CAST_CALL(ops->map_push_elem) -
| ^~~~~~~~~~~~~
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'int (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12958:17: note: in expansion of macro 'BPF_CAST_CALL'
12958 | insn->imm = BPF_CAST_CALL(ops->map_pop_elem) -
| ^~~~~~~~~~~~~
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'int (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12962:17: note: in expansion of macro 'BPF_CAST_CALL'
12962 | insn->imm = BPF_CAST_CALL(ops->map_peek_elem) -
| ^~~~~~~~~~~~~
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'int (* const)(struct bpf_map *, u32, u64)' {aka 'int (* const)(struct
bpf_map *, unsigned int, long long unsigned int)'} to 'u64 (*)(u64, u64, u64,
u64, u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long
unsigned int, long long unsigned int, long long unsigned int, long long unsigned
int)'} [-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
kernel/bpf/verifier.c:12966:17: note: in expansion of macro 'BPF_CAST_CALL'
12966 | insn->imm = BPF_CAST_CALL(ops->map_redirect) -
| ^~~~~~~~~~~~~
--
In file included from include/net/net_namespace.h:16,
from include/linux/netdevice.h:37,
from include/linux/if_vlan.h:10,
from include/linux/filter.h:21,
from kernel/bpf/hashtab.c:8:
> include/net/netns/core.h:14:2: error: expected
specifier-qualifier-list before 'unsigend'
14 | unsigend int
sysctl_txrehash_mode;
| ^~~~~~~~
In file included from kernel/bpf/hashtab.c:8:
kernel/bpf/hashtab.c: In function 'htab_map_gen_lookup':
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'void * (*)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
include/linux/filter.h:376:14: note: in definition of macro 'BPF_EMIT_CALL'
376 | .imm = ((FUNC) - __bpf_call_base) })
| ^~~~
kernel/bpf/hashtab.c:671:26: note: in expansion of macro 'BPF_CAST_CALL'
671 | *insn++ = BPF_EMIT_CALL(BPF_CAST_CALL(__htab_map_lookup_elem));
| ^~~~~~~~~~~~~
kernel/bpf/hashtab.c: In function 'htab_lru_map_gen_lookup':
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'void * (*)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
include/linux/filter.h:376:14: note: in definition of macro 'BPF_EMIT_CALL'
376 | .imm = ((FUNC) - __bpf_call_base) })
| ^~~~
kernel/bpf/hashtab.c:712:26: note: in expansion of macro 'BPF_CAST_CALL'
712 | *insn++ = BPF_EMIT_CALL(BPF_CAST_CALL(__htab_map_lookup_elem));
| ^~~~~~~~~~~~~
kernel/bpf/hashtab.c: In function 'htab_of_map_gen_lookup':
include/linux/filter.h:368:4: warning: cast between incompatible function types from
'void * (*)(struct bpf_map *, void *)' to 'u64 (*)(u64, u64, u64, u64,
u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned
int, long long unsigned int, long long unsigned int, long long unsigned int)'}
[-Wcast-function-type]
368 | ((u64 (*)(u64, u64, u64, u64, u64))(x))
| ^
include/linux/filter.h:376:14: note: in definition of macro 'BPF_EMIT_CALL'
376 | .imm = ((FUNC) - __bpf_call_base) })
| ^~~~
kernel/bpf/hashtab.c:2400:26: note: in expansion of macro 'BPF_CAST_CALL'
2400 | *insn++ = BPF_EMIT_CALL(BPF_CAST_CALL(__htab_map_lookup_elem));
| ^~~~~~~~~~~~~
--
In file included from include/net/net_namespace.h:16,
from include/linux/netdevice.h:37,
from include/net/sock.h:46,
from include/linux/tcp.h:19,
from include/linux/ipv6.h:91,
from include/net/ipv6.h:12,
from kernel/bpf/lpm_trie.c:15:
> include/net/netns/core.h:14:2: error: expected
specifier-qualifier-list before 'unsigend'
14 | unsigend int
sysctl_txrehash_mode;
| ^~~~~~~~
In file included from <command-line>:
include/net/sock.h: In function 'sk_rethink_txhash':
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:279:13: note: in definition of macro
'__unqual_scalar_typeof'
279 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
In file included from arch/alpha/include/asm/rwonce.h:33,
from include/linux/compiler.h:264,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/timer.h:5,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:9,
from kernel/bpf/lpm_trie.c:9:
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
--
In file included from include/net/net_namespace.h:16,
from include/linux/netdevice.h:37,
from include/linux/if_vlan.h:10,
from include/linux/filter.h:21,
from include/linux/bpf_verifier.h:9,
from kernel/bpf/btf.c:19:
> include/net/netns/core.h:14:2: error: expected
specifier-qualifier-list before 'unsigend'
14 | unsigend int
sysctl_txrehash_mode;
| ^~~~~~~~
In file included from <command-line>:
include/net/sock.h: In function 'sk_rethink_txhash':
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:308:9: note: in definition of macro
'__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro
'_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/linux/compiler_types.h:279:13: note: in definition of macro
'__unqual_scalar_typeof'
279 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
In file included from arch/alpha/include/asm/rwonce.h:33,
from include/linux/compiler.h:264,
from include/linux/ptrace.h:5,
from include/uapi/asm-generic/bpf_perf_event.h:4,
from ./arch/alpha/include/generated/uapi/asm/bpf_perf_event.h:1,
from include/uapi/linux/bpf_perf_event.h:11,
from kernel/bpf/btf.c:6:
> include/net/sock.h:1956:44: error: 'struct netns_core'
has no member named 'sysctl_txrehash_mode'
1956 | rehash_mode =
READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/net/sock.h:1956:16: note: in expansion of macro 'READ_ONCE'
1956 | rehash_mode = READ_ONCE(sock_net(sk)->core.sysctl_txrehash_mode);
| ^~~~~~~~~
kernel/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:5748:22: warning: function 'btf_seq_show' might be a candidate
for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5748 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:5785:2: warning: function 'btf_snprintf_show' might be a
candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5785 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
vim +/unsigend +14 include/net/netns/core.h
7
8 struct netns_core {
9 /* core sysctls */
10 struct ctl_table_header *sysctl_hdr;
11
12 int sysctl_somaxconn;
13
14 unsigend int sysctl_txrehash_mode;
15
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org