The patch titled Subject: include/media/media-entity.h: replace kernel.h with the necessary inclusions has been added to the -mm tree. Its filename is media-entity-replace-kernelh-with-the-necessary-inclusions.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/media-entity-replace-kernelh-with-the-necessary-inclusions.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/media-entity-replace-kernelh-with-the-necessary-inclusions.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Subject: include/media/media-entity.h: replace kernel.h with the necessary inclusions 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. Link: https://lkml.kernel.org/r/20211013170417.87909-8-andriy.shevchenko@xxxxxxxxxxxxxxx Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> Cc: Boqun Feng <boqun.feng@xxxxxxxxx> Cc: Brendan Higgins <brendanhiggins@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Jonathan Cameron <jic23@xxxxxxxxxx> Cc: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> Cc: Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Thorsten Leemhuis <regressions@xxxxxxxxxxxxx> Cc: Waiman Long <longman@xxxxxxxxxx> Cc: Will Deacon <will@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/media/media-entity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/include/media/media-entity.h~media-entity-replace-kernelh-with-the-necessary-inclusions +++ a/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 */ _ Patches currently in -mm which might be from andriy.shevchenko@xxxxxxxxxxxxxxx are kernelh-drop-unneeded-linux-kernelh-inclusion-from-other-headers.patch kernelh-split-out-container_of-and-typeof_member-macros.patch kunit-replace-kernelh-with-the-necessary-inclusions.patch list-replace-kernelh-with-the-necessary-inclusions.patch llist-replace-kernelh-with-the-necessary-inclusions.patch plist-replace-kernelh-with-the-necessary-inclusions.patch media-entity-replace-kernelh-with-the-necessary-inclusions.patch seq_file-move-seq_escape-to-a-header.patch