prof_pid will be an unresolved symbol if you don't enable profiling, and the final link of the kernel will fail. Make the sysctl entry conditional on the appropriate Kconfig option. This patch should be considered for merge into the existing preempt-realtime-debug-sysctl.patch. Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> --- kernel/sysctl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 584969c..ba2239e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -366,6 +366,7 @@ static struct ctl_table kern_table[] = { .proc_handler = &proc_dointvec, }, #endif +#ifdef CONFIG_PROFILING { .ctl_name = CTL_UNNUMBERED, .procname = "prof_pid", @@ -374,6 +375,7 @@ static struct ctl_table kern_table[] = { .mode = 0644, .proc_handler = &proc_dointvec, }, +#endif #ifdef CONFIG_PREEMPT { .ctl_name = CTL_UNNUMBERED, -- 1.6.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html