diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-01-26 09:03:38 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 09:03:38 -0600 |
| commit | a45cf3fffb37f6e05d0262de513e2b0742a7ed2b (patch) | |
| tree | f926006d8517961eaec86e25e3a81a273aac89c6 /scripts/package-build/linux-kernel/patches/kernel/0004-perf-fix-compile.patch | |
| parent | 32552c905139bc5648b1f7eb49a90ce1bcff789f (diff) | |
| parent | 5c72caeba9f67599936273dfc59caf1cbd732f74 (diff) | |
| download | vyos-build-a45cf3fffb37f6e05d0262de513e2b0742a7ed2b.tar.gz vyos-build-a45cf3fffb37f6e05d0262de513e2b0742a7ed2b.zip | |
Merge pull request #1109 from c-po/kernel-6.6.121
Kernel: T8203: Update Linux Kernel to 6.6.121
Diffstat (limited to 'scripts/package-build/linux-kernel/patches/kernel/0004-perf-fix-compile.patch')
| -rw-r--r-- | scripts/package-build/linux-kernel/patches/kernel/0004-perf-fix-compile.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/scripts/package-build/linux-kernel/patches/kernel/0004-perf-fix-compile.patch b/scripts/package-build/linux-kernel/patches/kernel/0004-perf-fix-compile.patch new file mode 100644 index 00000000..dc3c2614 --- /dev/null +++ b/scripts/package-build/linux-kernel/patches/kernel/0004-perf-fix-compile.patch @@ -0,0 +1,40 @@ +From c660a5ee919f01e7c3269ea92baf13741c8aee17 Mon Sep 17 00:00:00 2001 +From: Christian Breunig <christian@breunig.cc> +Date: Sat, 24 Jan 2026 07:06:05 +0100 +Subject: [PATCH] tools: fix implicit declaration of function cpu_to_le16 + +After commit 64d86c03e1441742216b6332bdfabfb6ede31662 ("perf arm-spe: Extend +branch operations") which was also backported to the stable branches, the +restructuring caused a missing definition. + +tools/include/linux/bitops.h implement + +define __MAKE_OP(size) \ + ____MAKE_OP(le##size,u##size,cpu_to_le##size,le##size##_to_cpu) \ + ____MAKE_OP(be##size,u##size,cpu_to_be##size,be##size##_to_cpu) \ + ____MAKE_OP(u##size,u##size,,) +____MAKE_OP(u8,u8,,) + +but cpu_to_le## or cpu_to_be## are not defined. + +Fix by including linux/kernel.h. + +--- + tools/include/linux/bitfield.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tools/include/linux/bitfield.h b/tools/include/linux/bitfield.h +index 6093fa6db260..ddf81f24956b 100644 +--- a/tools/include/linux/bitfield.h ++++ b/tools/include/linux/bitfield.h +@@ -8,6 +8,7 @@ + #define _LINUX_BITFIELD_H + + #include <linux/build_bug.h> ++#include <linux/kernel.h> + #include <asm/byteorder.h> + + /* +-- +2.39.5 + |
