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: workarounds for GCC BPF build #8310

Closed

Conversation

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

Pull request for series with
subject: selftests/bpf: workarounds for GCC BPF build
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=922166

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 96ea081
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=922166
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 73b9075
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=922166
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 8c21f88
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=922166
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

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

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 2532608
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=922659
version: 2

Various compilation errors happen when BPF programs in selftests/bpf
are built with GCC BPF. For more details see the discussion at [1].

The changes only affect test_progs-bpf_gcc, which is built only if
BPF_GCC is set:
  * Pass -std=gnu17 to gcc in order to avoid errors on bool types
    declarations in vmlinux.h
  * Pass -fno-strict-aliasing for tests that trigger uninitialized
    variable warning on BPF_RAW_INSNS [2]

[1] https://lore.kernel.org/bpf/EYcXjcKDCJY7Yb0GGtAAb7nLKPEvrgWdvWpuNzXm2qi6rYMZDixKv5KwfVVMBq17V55xyC-A1wIjrqG3aw-Imqudo9q9X7D7nLU2gWgbN0w=@pm.me/
[2] https://lore.kernel.org/bpf/[email protected]/

CC: Jose E. Marchesi <[email protected]>
Signed-off-by: Ihor Solodrai <[email protected]>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 859a7db
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=922659
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

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

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/922166=>bpf-next branch January 9, 2025 03:58
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.

1 participant