From f481ce0fd2ced3d37358de5079cfef098cbf9d77 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 30 Sep 2024 14:19:25 +0200 Subject: [PATCH] chore(driver/bpf): properly include sched.h in types.h since it uses `TASK_COMM_LEN`. Signed-off-by: Federico Di Pierro --- driver/bpf/probe.c | 1 - driver/bpf/types.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/bpf/probe.c b/driver/bpf/probe.c index 66d6fd1487..19b36b0c6d 100644 --- a/driver/bpf/probe.c +++ b/driver/bpf/probe.c @@ -14,7 +14,6 @@ or GPL2.txt for full copies of the license. #if __has_include() #include #endif -#include #include "driver_config.h" #include "ppm_events_public.h" diff --git a/driver/bpf/types.h b/driver/bpf/types.h index 2f859f0da1..a28e5284da 100644 --- a/driver/bpf/types.h +++ b/driver/bpf/types.h @@ -12,6 +12,8 @@ or GPL2.txt for full copies of the license. #ifdef __KERNEL__ +#include // TASK_COMM_LEN definition + #define __bpf_section(NAME) __attribute__((section(NAME), used)) #ifndef __always_inline