Re: [RFC PATCH powerpc] Fix compile error of pgtable-ppc64.h

2014-01-17 Thread Li Zhong
On Fri, 2014-01-17 at 12:27 +0530, Aneesh Kumar K.V wrote: Li Zhong zh...@linux.vnet.ibm.com writes: It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors: In file included from include/linux/spinlock.h:81,

Re: [RFC PATCH powerpc] Fix compile error of pgtable-ppc64.h

2014-01-17 Thread Benjamin Herrenschmidt
On Fri, 2014-01-17 at 21:30 +0800, Li Zhong wrote: On Fri, 2014-01-17 at 12:27 +0530, Aneesh Kumar K.V wrote: Li Zhong zh...@linux.vnet.ibm.com writes: It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors:

[RFC PATCH powerpc] Fix compile error of pgtable-ppc64.h

2014-01-16 Thread Li Zhong
It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors: In file included from include/linux/spinlock.h:81, from include/linux/seqlock.h:35, from include/linux/time.h:5,

Re: [RFC PATCH powerpc] Fix compile error of pgtable-ppc64.h

2014-01-16 Thread Aneesh Kumar K.V
Li Zhong zh...@linux.vnet.ibm.com writes: It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors: In file included from include/linux/spinlock.h:81, from include/linux/seqlock.h:35,