summaryrefslogtreecommitdiffstats
path: root/net/ax25
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2022-12-13 02:22:24 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2022-12-14 18:35:41 +0100
commitec9230b18b45853287298d70be23f8ec6bd44ff0 (patch)
treea2f7eda597197a8cb91909a34832c35c80b5f5e4 /net/ax25
parentdocs/bpf: Reword docs for BPF_MAP_TYPE_SK_STORAGE (diff)
downloadlinux-ec9230b18b45853287298d70be23f8ec6bd44ff0.tar.xz
linux-ec9230b18b45853287298d70be23f8ec6bd44ff0.zip
selftests/bpf: Fix a selftest compilation error with CONFIG_SMP=n
Kernel test robot reported bpf selftest build failure when CONFIG_SMP is not set. The error message looks below: >> progs/rcu_read_lock.c:256:34: error: no member named 'last_wakee' in 'struct task_struct' last_wakee = task->real_parent->last_wakee; ~~~~~~~~~~~~~~~~~ ^ 1 error generated. When CONFIG_SMP is not set, the field 'last_wakee' is not available in struct 'task_struct'. Hence the above compilation failure. To fix the issue, let us choose another field 'group_leader' which is available regardless of CONFIG_SMP set or not. Fixes: fe147956fca4 ("bpf/selftests: Add selftests for new task kfuncs") Fixes: 48671232fcb8 ("selftests/bpf: Add tests for bpf_rcu_read_lock()") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: David Vernet <void@manifault.com> Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: David Vernet <void@manifault.com> Link: https://lore.kernel.org/bpf/20221213012224.379581-1-yhs@fb.com
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions