The patch titled Subject: kunit: replace kernel.h with the necessary inclusions has been added to the -mm tree. Its filename is kunit-replace-kernelh-with-the-necessary-inclusions.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/kunit-replace-kernelh-with-the-necessary-inclusions.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/kunit-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: kunit: 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/20211213204441.56204-1-andriy.shevchenko@xxxxxxxxxxxxxxx Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Cc: Brendan Higgins <brendanhiggins@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/kunit/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/kunit/assert.h~kunit-replace-kernelh-with-the-necessary-inclusions +++ a/include/kunit/assert.h @@ -10,7 +10,7 @@ #define _KUNIT_ASSERT_H #include <linux/err.h> -#include <linux/kernel.h> +#include <linux/printk.h> struct kunit; struct string_stream; _ Patches currently in -mm which might be from andriy.shevchenko@xxxxxxxxxxxxxxx are include-linux-unaligned-replace-kernelh-with-the-necessary-inclusions.patch kernelh-include-a-note-to-discourage-people-from-including-it-in-headers.patch list-introduce-list_is_head-helper-and-re-use-it-in-listh.patch kunit-replace-kernelh-with-the-necessary-inclusions.patch