summaryrefslogtreecommitdiffstats
path: root/include/kunit
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-01-20 03:09:19 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2022-01-20 07:52:54 +0100
commit60c7801b121aa0e90d8aae7245859aec0ce2306f (patch)
treef1e8ea6589d66b5c4ca82b1e294d08a19f9c06d3 /include/kunit
parenttest_hash.c: refactor into kunit (diff)
downloadlinux-60c7801b121aa0e90d8aae7245859aec0ce2306f.tar.xz
linux-60c7801b121aa0e90d8aae7245859aec0ce2306f.zip
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>
Diffstat (limited to 'include/kunit')
-rw-r--r--include/kunit/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kunit/assert.h b/include/kunit/assert.h
index ad889b539ab3..ccbc36c0b02f 100644
--- a/include/kunit/assert.h
+++ b/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;