From 5b96e6c10b632cb8ff40f3d107c4e9dece18beeb Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Wed, 3 Feb 2021 19:28:35 +0100 Subject: [PATCH] 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 --- arch/s390/include/asm/thread_info.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index 28696ca7680d..e6674796aa6f 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);