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: add -std=gnu17 to GCC BPF build rule #8324

Open
wants to merge 1 commit into
base: bpf-next_base
Choose a base branch
from

Conversation

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

Pull request for series with
subject: selftests/bpf: add -std=gnu17 to GCC BPF build rule
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=922673

@kernel-patches-daemon-bpf
Copy link
Author

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

Latest versions of GCC BPF use C23 standard by default. This causes
compilation errors in vmlinux.h due to bool types declarations.

Pass -std=gnu17 when building selftests BPF objects with GCC.

For more details see the discussion at [1].

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

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

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

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