X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Ffork.c;h=16fd412c756d708c244545b4a264f1891840f764;hb=e18425a0abc8eafa8e98ecffac517bb0c0904f4b;hp=b71ccd09fc8def0bb524d536b9faf3fee8e50451;hpb=d1794f2c5b5817eb79ccc5e00701ca748d1b073a;p=linux-2.6-omap-h63xx.git diff --git a/kernel/fork.c b/kernel/fork.c index b71ccd09fc8..16fd412c756 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -910,7 +910,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, rt_mutex_init_task(p); -#ifdef CONFIG_TRACE_IRQFLAGS +#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_LOCKDEP) DEBUG_LOCKS_WARN_ON(!p->hardirqs_enabled); DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled); #endif