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@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Andy Shevchenko 2022-01-19 18:09:19 -08:00 committed by Linus Torvalds
parent 0acc968f35
commit 60c7801b12
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
#define _KUNIT_ASSERT_H #define _KUNIT_ASSERT_H
#include <linux/err.h> #include <linux/err.h>
#include <linux/kernel.h> #include <linux/printk.h>
struct kunit; struct kunit;
struct string_stream; struct string_stream;