From: Andy Shevchenko Date: Fri, 4 May 2018 01:13:45 +0000 (+0300) Subject: lib/string_helpers: Add missed declaration of struct task_struct X-Git-Tag: v4.18-rc1~25^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6d24c324e78a71e55af4e00de014cf0e0524dcb;p=thirdparty%2Flinux.git lib/string_helpers: Add missed declaration of struct task_struct Starting from the commit 0d0443288f22 the new function has been introduced which takes struct task_struct as a parameter. Though, compiler doesn't know where to get information about it at this stage. Add missed declaration of struct task_struct to satisfy compiler. Fixes: 0d0443288f22 ("string_helpers: add kstrdup_quotable_cmdline") Cc: Kees Cook Cc: James Morris Signed-off-by: Andy Shevchenko Acked-by: Kees Cook --- diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h index 4397c52ec4a49..d23c5030901a2 100644 --- a/include/linux/string_helpers.h +++ b/include/linux/string_helpers.h @@ -5,6 +5,7 @@ #include struct file; +struct task_struct; /* Descriptions of the types of units to * print in */