summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-05-04 04:13:45 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-05-15 21:47:09 +0300
commitc6d24c324e78a71e55af4e00de014cf0e0524dcb (patch)
tree6bbd3c95a8adcb7dcb5818f392448b2e5db8b194 /include/linux
parent74783c99bf564cf598ec371a1dd790a5bf5afb64 (diff)
downloadlinux-c6d24c324e78a71e55af4e00de014cf0e0524dcb.tar.xz
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 <keescook@chromium.org> Cc: James Morris <james.l.morris@oracle.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux')
-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 4397c52ec4a4..d23c5030901a 100644
--- a/include/linux/string_helpers.h
+++ b/include/linux/string_helpers.h
@@ -5,6 +5,7 @@
#include <linux/types.h>
struct file;
+struct task_struct;
/* Descriptions of the types of units to
* print in */