[kbuild-all] [linux-stable-rc:linux-5.2.y 19/62] arch/x86/kernel/ptrace.c:651:3: warning: ISO C90 forbids mixed declarations and code

Greg Kroah-Hartman gregkh at linuxfoundation.org
Sat Jul 13 07:51:29 PDT 2019


On Sat, Jul 13, 2019 at 10:34:31PM +0800, kbuild test robot wrote:
> tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.2.y
> head:   61731e8fe278d37915a743554d370bc33a2037cb
> commit: 87f973ae087aa9168a497fc3adca83732b7be359 [19/62] x86/ptrace: Fix possible spectre-v1 in ptrace_get_debugreg()
> config: i386-tinyconfig (attached as .config)
> compiler: gcc-7 (Debian 7.4.0-6) 7.4.0
> reproduce:
>         git checkout 87f973ae087aa9168a497fc3adca83732b7be359
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp at intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>    arch/x86/kernel/ptrace.c: In function 'ptrace_get_debugreg':
> >> arch/x86/kernel/ptrace.c:651:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
>       struct perf_event *bp = thread->ptrace_bps[index];
>       ^~~~~~
> 
> vim +651 arch/x86/kernel/ptrace.c

This issue is also in Linus's tree.  Can someone please get it fixed
there first?

thanks

greg k-h


More information about the kbuild-all mailing list