From: Alexander Egorenkov Date: Wed, 3 Feb 2021 18:28:35 +0000 (+0100) Subject: s390/thread_info.h: fix task_struct declaration warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5b96e6c10b632cb8ff40f3d107c4e9dece18beeb;p=linux.git s390/thread_info.h: fix task_struct declaration warning Add missing forward declaration for task_struct. The warning appears when the -Werror C compiler flag is being used. Signed-off-by: Alexander Egorenkov Acked-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index 28696ca7680d7..e6674796aa6f4 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h @@ -47,6 +47,8 @@ struct thread_info { .flags = 0, \ } +struct task_struct; + void arch_release_task_struct(struct task_struct *tsk); int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);