* [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct
@ 2018-05-04 1:13 Andy Shevchenko
2018-05-04 4:34 ` Kees Cook
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2018-05-04 1:13 UTC (permalink / raw)
To: linux-kernel; +Cc: Andy Shevchenko, Kees Cook, James Morris
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>
---
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 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 */
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct
2018-05-04 1:13 [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct Andy Shevchenko
@ 2018-05-04 4:34 ` Kees Cook
2018-05-10 20:59 ` Kees Cook
0 siblings, 1 reply; 4+ messages in thread
From: Kees Cook @ 2018-05-04 4:34 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: LKML, James Morris
On Thu, May 3, 2018 at 6:13 PM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> 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>
I'm not sure who should carry this. You're welcome to put it in your tree?
-Kees
> ---
> 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 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 */
> --
> 2.17.0
>
--
Kees Cook
Pixel Security
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct
2018-05-04 4:34 ` Kees Cook
@ 2018-05-10 20:59 ` Kees Cook
2018-05-15 18:54 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Kees Cook @ 2018-05-10 20:59 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: LKML, James Morris
On Thu, May 3, 2018 at 9:34 PM, Kees Cook <keescook@chromium.org> wrote:
> On Thu, May 3, 2018 at 6:13 PM, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
>> 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>
>
> I'm not sure who should carry this. You're welcome to put it in your tree?
I haven't seen this show up in linux-next. Andy will you be taking it?
-Kees
>
> -Kees
>
>> ---
>> 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 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 */
>> --
>> 2.17.0
>>
>
>
>
> --
> Kees Cook
> Pixel Security
--
Kees Cook
Pixel Security
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct
2018-05-10 20:59 ` Kees Cook
@ 2018-05-15 18:54 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2018-05-15 18:54 UTC (permalink / raw)
To: Kees Cook; +Cc: Andy Shevchenko, LKML, James Morris
On Thu, May 10, 2018 at 11:59 PM, Kees Cook <keescook@chromium.org> wrote:
> On Thu, May 3, 2018 at 9:34 PM, Kees Cook <keescook@chromium.org> wrote:
>> On Thu, May 3, 2018 at 6:13 PM, Andy Shevchenko
>> <andriy.shevchenko@linux.intel.com> wrote:
>>> 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>
>>
>> I'm not sure who should carry this. You're welcome to put it in your tree?
>
> I haven't seen this show up in linux-next. Andy will you be taking it?
Will be in next next.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-15 18:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 1:13 [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct Andy Shevchenko
2018-05-04 4:34 ` Kees Cook
2018-05-10 20:59 ` Kees Cook
2018-05-15 18:54 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).