]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8fd4f0119536bc0e7be581b2732735b4557157e
tree4c2b0796604f527225892247e63cb523420de74d
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
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