]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
lib/tests: string_helpers: don't use "proxy" headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Apr 2026 19:32:48 +0000 (21:32 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:24:42 +0000 (21:24 -0700)
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>
lib/tests/string_helpers_kunit.c

index cd08e79a857def8fb63741806d7c853b732e5e51..9fbe91079c7ed04ca8648b45b38a72e104bdc3f9 100644 (file)
@@ -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,