summaryrefslogtreecommitdiff
path: root/include/linux/string_helpers.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2021-11-09 05:33:19 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-09 21:02:50 +0300
commitbfb3ba32061da1a9217ef6d02fbcffb528e4c8df (patch)
treee9dde93ebe5c6dbbfc69ed80fad0eab4b652d994 /include/linux/string_helpers.h
parent0f68d45ef41abb618a9ca33996348ae73800a106 (diff)
downloadlinux-bfb3ba32061da1a9217ef6d02fbcffb528e4c8df.tar.xz
include/linux/string_helpers.h: add linux/string.h for strlen()
linux/string_helpers.h uses strlen(), so include the correponding header. Otherwise we get a compilation error if it's not also included by whoever included the helper. Link: https://lkml.kernel.org/r/20211005212634.3223113-1-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/string_helpers.h')
-rw-r--r--include/linux/string_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h
index 68189c4a2eb1..4ba39e1403b2 100644
--- a/include/linux/string_helpers.h
+++ b/include/linux/string_helpers.h
@@ -4,6 +4,7 @@
#include <linux/bits.h>
#include <linux/ctype.h>
+#include <linux/string.h>
#include <linux/types.h>
struct file;