lkml.org 
[lkml]   [2010]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch 0/2] sysfs: fix s_active lockdep warning
On Fri, 5 Feb 2010, Cong Wang wrote:

> Alan Stern wrote:
> > On Thu, 4 Feb 2010, Peter Zijlstra wrote:
> >
> >> On Thu, 2010-02-04 at 11:35 -0500, Alan Stern wrote:
> >>> +#include <linux/sched.h>
> >> #include <linux/lockdep.h>
> >>
> >> should be sufficient I think.
> >
> > No, it's not. It leaves MAX_LOCK_DEPTH undeclared. Beats me why that
> > symbol ended up in sched.h...
> >
>
> because task_struct->held_locks uses it, but it seems better to move
> it into lockdep.h...

Be my guest! :-)

Alan Stern



\
 
 \ /
  Last update: 2010-02-05 05:09    [W:0.120 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site