Skip to contentSkip to conversation

Fix build, missing profile.h include in kernel/sysctl.c (against 2.6.24.3-rt3)

PATCH New Leon Woestenberg 1 participant 1 message Feb 29, 2008 Proc sysctl

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build, missing profile.h include in kernel/sysctl.c (against 2.6.24.3-rt3)

Build fix for kernel/sysctl.c:356: error: 'prof_pid' undeclared here (not in a function).
The fix is to include <linux/profile.h> which defines prof_pid as external. Patch is against 2.6.24.3-rt3.

kernel/sysctl.c 2008-02-29 00:52:59.000000000 +0100 renamed from kernel/sysctl.c 2008-02-29 00:52:45.000000000 +0100 +1 -0
Index: linux-2.6.24.3/kernel/sysctl.c
===================================================================
@@ -47,6 +47,7 @@
 #include <linux/acpi.h>
 #include <linux/reboot.h>
 #include <linux/ftrace.h>
+#include <linux/profile.h>
 
 #include <asm/uaccess.h>
 #include <asm/processor.h>
Signature · 1 line
Leon