diff options
| author | Martin KaFai Lau <[email protected]> | 2023-10-13 18:57:02 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-10-13 19:35:43 +0000 |
| commit | 9c1292eca243821249fa99f40175b0660d9329e3 (patch) | |
| tree | 64e64477ba943941f8cf56e3dd7962e6c30f54ed /tools/testing/selftests/bpf/progs/percpu_alloc_array.c | |
| parent | bpf: Avoid unnecessary audit log for CPU security mitigations (diff) | |
| download | kernel-9c1292eca243821249fa99f40175b0660d9329e3.tar.gz kernel-9c1292eca243821249fa99f40175b0660d9329e3.zip | |
net/bpf: Avoid unused "sin_addr_len" warning when CONFIG_CGROUP_BPF is not set
It was reported that there is a compiler warning on the unused variable
"sin_addr_len" in af_inet.c when CONFIG_CGROUP_BPF is not set.
This patch is to address it similar to the ipv6 counterpart
in inet6_getname(). It is to "return sin_addr_len;"
instead of "return sizeof(*sin);".
Fixes: fefba7d1ae19 ("bpf: Propagate modified uaddrlen from cgroup sockaddr programs")
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Closes: https://lore.kernel.org/bpf/[email protected]/
Diffstat (limited to 'tools/testing/selftests/bpf/progs/percpu_alloc_array.c')
0 files changed, 0 insertions, 0 deletions
