lib/string_helpers: Add missed declaration of struct task_struct
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 4 May 2018 01:13:45 +0000 (04:13 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 May 2018 18:47:09 +0000 (21:47 +0300)
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>
include/linux/string_helpers.h

index 4397c52..d23c503 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/types.h>
 
 struct file;
+struct task_struct;
 
 /* Descriptions of the types of units to
  * print in */