Thread (16 messages) 16 messages, 5 authors, 2020-06-29

Re: [PATCH] lockdep: Move list.h inclusion into lockdep.h

From: Andy Shevchenko <hidden>
Date: 2020-06-24 12:49:38
Also in: lkml

On Wed, Jun 24, 2020 at 3:43 PM Herbert Xu [off-list ref] wrote:
On Tue, Jun 23, 2020 at 04:28:58PM +0200, Petr Mladek wrote:
...
quoted
-#include <linux/kernel.h>
+#include <linux/compiler.h>
Unfortunately this doesn't work because list.h actually does need
kernel.h for container_of.

However, we can easily fix the loop another way by removing list.h
from lockdep.h as it doesn't actually use any list macros/functions
but only the list type which is now in linux/types.h.

We could either fold this into the lockdep_types patch, or fold it
into the printk patch, or just leave it as a standalone patch.
What do you guys think?
Does lockdep_types include types? Then we are fine and it is the way to go.

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help