[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201702061806.nZrqX9Uq%fengguang.wu@intel.com>
Date: Mon, 6 Feb 2017 18:19:11 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.sched/core 118/167] arch/sh/kernel/cpu/sh2a/fpu.c:559:1:
note: in expansion of macro 'BUILD_TRAP_HANDLER'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: 3cb464183709fc66902b262ce921cb5a410697d1
commit: d8c081caed34b16d17d639fa49889d2b7b22c9b0 [118/167] sched/headers: Remove <asm/ptrace.h> from <linux/sched.h>
config: sh-rsk7203_defconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d8c081caed34b16d17d639fa49889d2b7b22c9b0
# save the attached .config to linux build tree
make.cross ARCH=sh
All warnings (new ones prefixed by >>):
In file included from arch/sh/kernel/cpu/sh2a/fpu.c:16:0:
arch/sh/include/asm/fpu.h: In function 'release_fpu':
arch/sh/include/asm/fpu.h:11:6: error: dereferencing pointer to incomplete type 'struct pt_regs'
regs->sr |= SR_FD;
^~
In file included from arch/sh/include/asm/traps.h:7:0,
from arch/sh/kernel/cpu/sh2a/fpu.c:17:
arch/sh/kernel/cpu/sh2a/fpu.c: At top level:
arch/sh/include/asm/traps_32.h:53:24: error: parameter 5 ('__regs') has incomplete type
struct pt_regs __regs)
^
>> arch/sh/kernel/cpu/sh2a/fpu.c:559:1: note: in expansion of macro 'BUILD_TRAP_HANDLER'
BUILD_TRAP_HANDLER(fpu_error)
^~~~~~~~~~~~~~~~~~
vim +/BUILD_TRAP_HANDLER +559 arch/sh/kernel/cpu/sh2a/fpu.c
74d99a5e Paul Mundt 2007-11-26 543 /* FPU error because of denormal */
74d99a5e Paul Mundt 2007-11-26 544 if ((finsn & 0xf00f) == 0xf000)
74d99a5e Paul Mundt 2007-11-26 545 hx = denormal_addf(hx, hy);
74d99a5e Paul Mundt 2007-11-26 546 else
74d99a5e Paul Mundt 2007-11-26 547 hx = denormal_addf(hx, hy ^ 0x80000000);
0ea820cf Paul Mundt 2010-01-13 548 tsk->thread.xstate->hardfpu.fp_regs[n] = hx;
74d99a5e Paul Mundt 2007-11-26 549 } else
74d99a5e Paul Mundt 2007-11-26 550 return 0;
74d99a5e Paul Mundt 2007-11-26 551
74d99a5e Paul Mundt 2007-11-26 552 regs->pc = nextpc;
74d99a5e Paul Mundt 2007-11-26 553 return 1;
74d99a5e Paul Mundt 2007-11-26 554 }
74d99a5e Paul Mundt 2007-11-26 555
74d99a5e Paul Mundt 2007-11-26 556 return 0;
74d99a5e Paul Mundt 2007-11-26 557 }
74d99a5e Paul Mundt 2007-11-26 558
74d99a5e Paul Mundt 2007-11-26 @559 BUILD_TRAP_HANDLER(fpu_error)
74d99a5e Paul Mundt 2007-11-26 560 {
74d99a5e Paul Mundt 2007-11-26 561 struct task_struct *tsk = current;
74d99a5e Paul Mundt 2007-11-26 562 TRAP_HANDLER_DECL;
74d99a5e Paul Mundt 2007-11-26 563
d3ea9fa0 Stuart Menefy 2009-09-25 564 __unlazy_fpu(tsk, regs);
74d99a5e Paul Mundt 2007-11-26 565 if (ieee_fpe_handler(regs)) {
0ea820cf Paul Mundt 2010-01-13 566 tsk->thread.xstate->hardfpu.fpscr &=
74d99a5e Paul Mundt 2007-11-26 567 ~(FPSCR_CAUSE_MASK | FPSCR_FLAG_MASK);
:::::: The code at line 559 was first introduced by commit
:::::: 74d99a5e262229ee865f6f68528d10b82471ead6 sh: SH-2A FPU support.
:::::: TO: Paul Mundt <lethal@...ux-sh.org>
:::::: CC: Paul Mundt <lethal@...ux-sh.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (12145 bytes)
Powered by blists - more mailing lists