diff --git a/include/linux/sched.h b/include/linux/sched.h index 1e2a6db2d7dd03466bf850dc5011860c23e8f9c9..dbafa9e34a2d6ed90c4f7f86016eddde957c44e1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -336,6 +336,9 @@ extern unsigned long sysctl_hung_task_warnings; extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); +#else +/* Avoid need for ifdefs elsewhere in the code */ +enum { sysctl_hung_task_timeout_secs = 0 }; #endif /* Attach to any functions which should be ignored in wchan output. */