Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selftests/bpf: fix application of sizeof to pointer #4680

Closed

Conversation

kernel-patches-daemon-bpf-rc[bot]
Copy link

Pull request for series with
subject: selftests/bpf: fix application of sizeof to pointer
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 2c8b09a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 2c8b09a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 2c8b09a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: fc39fb5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: fc39fb5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: fc39fb5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 28eb75e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 9f16d5e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: d00058e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 6398ef9
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=910806
version: 1

sizeof when applied to a pointer typed expression gives the size of
the pointer.

tools/testing/selftests/bpf/progs/test_tunnel_kern.c:678:41-47: ERROR: application of sizeof to pointer

The proper fix in this particular case is to code sizeof(*gopt)
instead of sizeof(gopt).

This issue was detected with the help of Coccinelle.

Fixes: 5ddafcc ("selftests/bpf: Fix a few tests for GCC related warnings.")
Signed-off-by: guanjing <[email protected]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=910806 expired. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants