Re: [PATCH v10 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time

From: Li, Aubrey
Date: Tue Feb 12 2019 - 08:20:42 EST


On 2019/2/12 21:03, Thomas Gleixner wrote:
> On Tue, 12 Feb 2019, Aubrey Li wrote:
>
> arch/x86/kernel/fpu/xstate.c:1252:6: warning: no previous prototype for ʽavx512_statusʼ [-Wmissing-prototypes]
> void avx512_status(struct seq_file *m, struct task_struct *task)
> ^~~~~~~~~~~~~
Sorry for this warning, I didn't see it on my side. May I know how to open this knob?

> arch/x86/kernel/fpu/xstate.c: In function ʽavx512_statusʼ:
> arch/x86/kernel/fpu/xstate.c:1254:44: error: ʽstruct fpuʼ has no member named ʽavx512_timestampʼ
> unsigned long timestamp = task->thread.fpu.avx512_timestamp;

I didn't include the first patch, because I saw it's already in tip tree. Did you use tip tree?

> ^
> arch/x86/kernel/fpu/xstate.c: At top level:
> arch/x86/kernel/fpu/xstate.c:1279:6: warning: no previous prototype for ʽarch_proc_pid_statusʼ [-Wmissing-prototypes]
> void arch_proc_pid_status(struct seq_file *m, struct task_struct *task)
> ^~~~~~~~~~~~~~~~~~~~
Sorry for this, May I know how to replicate it on my side?

Thanks,
-Aubrey