Messages in this thread | | | Date | Tue, 21 Apr 2015 08:20:53 -0400 | From | Sasha Levin <> | Subject | Re: [PATCH] tools/liblockdep: Fix compilation error. |
| |
On 04/21/2015 03:00 AM, Eunbong Song wrote: > diff --git a/tools/lib/lockdep/lockdep.c b/tools/lib/lockdep/lockdep.c > index f42b7e9..f83a988 100644 > --- a/tools/lib/lockdep/lockdep.c > +++ b/tools/lib/lockdep/lockdep.c > @@ -1,2 +1,8 @@ > #include <linux/lockdep.h> > + > +#ifdef list_for_each_entry_rcu > +#undef list_for_each_entry_rcu > +#endif > +#define list_for_each_entry_rcu(pos, head, member) list_for_each_entry(pos, head, member) > + > #include "../../../kernel/locking/lockdep.c"
I'd rather have it pull include/linux/rculist.h and "fix" it up for userspace like we did for the rest of the headers rather than start adding exceptions in the main program code.
Thanks, Sasha
| |