Re: [v3 PATCH 1/2] lockdep: Split header file into lockdep and lockdep_types

2020-06-18 Thread Peter Zijlstra
On Wed, Jun 17, 2020 at 02:24:50PM +0200, Petr Mladek wrote: > On Wed 2020-06-17 10:24:59, Peter Zijlstra wrote: > > On Wed, Jun 17, 2020 at 05:17:19PM +1000, Herbert Xu wrote: > > > There is a header file inclusion loop between asm-generic/bug.h > > > and linux/kernel.h. This causes potential

Re: [v3 PATCH 1/2] lockdep: Split header file into lockdep and lockdep_types

2020-06-17 Thread Petr Mladek
On Wed 2020-06-17 10:24:59, Peter Zijlstra wrote: > On Wed, Jun 17, 2020 at 05:17:19PM +1000, Herbert Xu wrote: > > There is a header file inclusion loop between asm-generic/bug.h > > and linux/kernel.h. This causes potential compile failurs depending > > on the which file is included first. One

Re: [v3 PATCH 1/2] lockdep: Split header file into lockdep and lockdep_types

2020-06-17 Thread Peter Zijlstra
On Wed, Jun 17, 2020 at 05:17:19PM +1000, Herbert Xu wrote: > There is a header file inclusion loop between asm-generic/bug.h > and linux/kernel.h. This causes potential compile failurs depending > on the which file is included first. One way of breaking this loop > is to stop spinlock_types.h

[v3 PATCH 1/2] lockdep: Split header file into lockdep and lockdep_types

2020-06-17 Thread Herbert Xu
There is a header file inclusion loop between asm-generic/bug.h and linux/kernel.h. This causes potential compile failurs depending on the which file is included first. One way of breaking this loop is to stop spinlock_types.h from including lockdep.h. This patch splits lockdep.h into two files