Skip to content

linux-6.1.y: fix build errors with newer GCC/glibc

Clark Williams bpf kvm stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Fixed Assisted-by tag format per coding-assistants.html
- Added upstream commit references per stable-kernel-rules.html
- Updated KVM subsystem prefix to conventional KVM: VMX: style
- Fixed Author/Signed-off-by email mismatch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tools/lib/bpf: fix const-qualifier discard in resolve_full_pathtools/lib/bpf/libbpf.c+1 -12 replies
2/2KVM: VMX: guard regparm(0) on vmread_error_trampoline for x86_32 onlyarch/x86/kvm/vmx/vmx_ops.h+5 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] linux-6.1.y: fix build errors with newer GCC/glibc

Please apply to linux-6.1.y.

Two build fixes for newer toolchains (GCC 15+ / glibc 2.43+):

1) tools/lib/bpf: strchr() now propagates const in newer glibc, causing -Werror=discarded-qualifiers on next_path in resolve_full_path(). Equivalent to upstream commit d70f79fef658.

2) KVM: VMX: regparm(0) on vmread_error_trampoline is a no-op on x86-64 and newer GCC emits -Wattributes for it. Guard with CONFIG_X86_32. Simpler equivalent of upstream commit 0b5e7a16a0a7 which redesigns the declaration entirely.

Changes since v1:
- Fixed Assisted-by tag format per coding-assistants.html
- Added upstream commit references per stable-kernel-rules.html
- Updated KVM subsystem prefix to conventional KVM: VMX: style
- Fixed Author/Signed-off-by email mismatch

Clark Williams (2):
tools/lib/bpf: fix const-qualifier discard in resolve_full_path
KVM: VMX: guard regparm(0) on vmread_error_trampoline for x86_32 only

 arch/x86/kvm/vmx/vmx_ops.h | 7 +++++--
 tools/lib/bpf/libbpf.c     | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

base-commit: 228da13e907e2b46b7222cfc35290fbfad920bef

Signature · 1 line
2.54.0