mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] lib/string_helpers: add linux/string.h for strlen()
@ 2021-10-05 21:26 Lucas De Marchi
  2021-10-05 23:21 ` Andrew Morton
       [not found] ` <CAHp75VfT+dSNYSntj9O5a9NVGnbf_raxWLiS7ciDMe-kRL-+=A@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Lucas De Marchi @ 2021-10-05 21:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Andy Shevchenko

linux/string_helpers.h uses strlen(), so include the correpondent
header. Otherwise we get a compilation error if it's not also included
by whoever included the helper.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 include/linux/string_helpers.h | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
2.33.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-06  7:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 21:26 [PATCH] lib/string_helpers: add linux/string.h for strlen() Lucas De Marchi
2021-10-05 23:21 ` Andrew Morton
2021-10-05 23:33   ` Lucas De Marchi
     [not found] ` <CAHp75VfT+dSNYSntj9O5a9NVGnbf_raxWLiS7ciDMe-kRL-+=A@mail.gmail.com>
2021-10-06  6:30   ` Lucas De Marchi
2021-10-06  7:14     ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®