diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-04-06 21:32:48 +0200 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-05-28 21:24:42 -0700 |
| commit | fe495c4e2ee34f84d856c06d524d43512e1f4f98 (patch) | |
| tree | fbad15dba01d010240cd05af45c108e0bc089169 | |
| parent | f53718d5a23b72149c9bb7287c9ca078ff4d4aab (diff) | |
lib/tests: string_helpers: don't use "proxy" headers
Update header inclusions to follow IWYU (Include What You Use) principle.
Link: https://lore.kernel.org/20260406193425.1534197-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Kees Cook <kees@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
| -rw-r--r-- | lib/tests/string_helpers_kunit.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/tests/string_helpers_kunit.c b/lib/tests/string_helpers_kunit.c index cd08e79a857d..9fbe91079c7e 100644 --- a/lib/tests/string_helpers_kunit.c +++ b/lib/tests/string_helpers_kunit.c @@ -5,11 +5,16 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> + #include <linux/array_size.h> -#include <linux/kernel.h> +#include <linux/bug.h> +#include <linux/limits.h> +#include <linux/module.h> #include <linux/random.h> -#include <linux/string.h> +#include <linux/slab.h> +#include <linux/sprintf.h> #include <linux/string_helpers.h> +#include <linux/types.h> static void test_string_check_buf(struct kunit *test, const char *name, unsigned int flags, |
