lockdep: Split header file into lockdep and lockdep_types
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 17 Jun 2020 07:17:19 +0000 (17:17 +1000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Jun 2020 16:33:13 +0000 (18:33 +0200)
commitc935cd62d3fe985d7f0ebea185d2759e8992e96f
tree4c2b0796604f527225892247e63cb523420de74d
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
lockdep: Split header file into lockdep and lockdep_types

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 for this purpose.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Petr Mladek <pmladek@suse.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/E1jlSJz-0003hE-8g@fornost.hmeau.com
include/linux/lockdep.h
include/linux/lockdep_types.h [new file with mode: 0644]
include/linux/spinlock.h
include/linux/spinlock_types.h