[PATCH v3 7/7] media: entity: Replace kernel.h with the necessary inclusions

0 views
Skip to first unread message

Andy Shevchenko

unread,
Oct 7, 2021, 11:04:47 AM10/7/21
to Brendan Higgins, Andy Shevchenko, Peter Zijlstra, Thomas Gleixner, linux-...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux...@vger.kernel.org, Greg Kroah-Hartman, Rafael J. Wysocki, Ingo Molnar, Will Deacon, Waiman Long, Boqun Feng, Sakari Ailus, Laurent Pinchart, Mauro Carvalho Chehab, Andrew Morton, Miguel Ojeda
When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Andy Shevchenko <andriy.s...@linux.intel.com>
---
include/media/media-entity.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 09737b47881f..fea489f03d57 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -13,10 +13,11 @@

#include <linux/bitmap.h>
#include <linux/bug.h>
+#include <linux/container_of.h>
#include <linux/fwnode.h>
-#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/media.h>
+#include <linux/types.h>

/* Enums used internally at the media controller to represent graphs */

--
2.33.0

Reply all
Reply to author
Forward
0 new messages