Re: Incomplete type on task_pt_regs .
From: Thomas Gleixner
Date: Fri Mar 10 2017 - 05:41:10 EST
Marian,
On Thu, 9 Mar 2017, Corcodel Marian wrote:
> Try to remove suppres errors on compiler.
>
> Run make
>
> Bellow is error message from compiler:
>
> ./arch/x86/include/asm/processor.h:594:51: error: dereferencing pointer to
> incomplete type âstruct task_structâ
> #define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1)
> ^
> arch/x86/init/compat.c:27:8: note: in expansion of macro âtask_pt_regsâ
> sp = task_pt_regs(current)->sp;
This is pretty useless because you miss to provide the information how that
compile errors are exposed:
- .config file
- compiler version
- source tree (branch, SHA1 of head commit)
- Source file which exposes the failure
Thanks,
tglx