Centos-kernel-stream-10/samples
Benjamin Tissoires 8b2124d415 samples/hid: fix broken vmlinux path for VMLINUX_BTF
JIRA: https://issues.redhat.com/browse/RHEL-101770
Upstream Status: since v6.14
Tested: with the hid-tools test suite and some hardware

commit 8b125949df58a00e8797c6e6d3f3d3dc08f4d939
Author: Jinghao Jia <jinghao7@illinois.edu>
Date:   Mon Feb 3 02:55:06 2025 -0600

    samples/hid: fix broken vmlinux path for VMLINUX_BTF

    Commit 13b25489b6f8 ("kbuild: change working directory to external
    module directory with M=") changed kbuild working directory of hid-bpf
    sample programs to samples/hid, which broke the vmlinux path for
    VMLINUX_BTF, as the Makefiles assume the current work directory to be
    the kernel output directory and use a relative path (i.e., ./vmlinux):

      Makefile:173: *** Cannot find a vmlinux for VMLINUX_BTF at any of "  /path/to/linux/samples/hid/vmlinux", build the kernel or set VMLINUX_BTF or VMLINUX_H variable.  Stop.

    Correctly refer to the kernel output directory using $(objtree).

    Fixes: 13b25489b6f8 ("kbuild: change working directory to external module directory with M=")
    Tested-by: Ruowen Qin <ruqin@redhat.com>
    Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
    Suggested-by: Andrii Nakryiko <andrii@kernel.org>
    Signed-off-by: Jinghao Jia <jinghao7@illinois.edu>
    Link: https://patch.msgid.link/20250203085506.220297-4-jinghao7@illinois.edu
    Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
2025-08-12 17:20:21 +02:00
..
acrn
auxdisplay
binderfs
bpf samples/bpf: Remove unused variable 2025-06-17 13:44:01 +02:00
cgroup
configfs
connector
coresight
fanotify
fprobe
ftrace samples/ftrace: Add support for ftrace direct samples on powerpc 2025-06-03 08:59:15 +02:00
hid samples/hid: fix broken vmlinux path for VMLINUX_BTF 2025-08-12 17:20:21 +02:00
hidraw
hw_breakpoint perf/hw_breakpoint: use ERR_PTR_PCPU(), IS_ERR_PCPU() and PTR_ERR_PCPU() macros 2025-03-10 12:31:36 +01:00
kdb
kfifo
kmemleak
kobject
kprobes
landlock
livepatch livepatch: convert timeouts to secs_to_jiffies() 2025-04-04 11:55:11 -04:00
mei
nitro_enclaves
pfsm
pidfd
pktgen
qmi
rpmsg
rust
seccomp
timers
trace_events
trace_printk
uhid
user_events
v4l
vfio-mdev module: Convert symbol namespace to string literal 2025-04-03 10:32:19 +02:00
vfs
watch_queue
watchdog
Kconfig
Makefile