Hi Vincent,
FYI, the error/warning still remains.
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8ada228ac7ed08a2c5ce035089e858b103af09c4
commit: 727a399b7476d1c509c4526594ad514e47a7e069 [3194/4408] riscv: remove the switch
statement in do_trap_break()
config: riscv-allnoconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.4.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 727a399b7476d1c509c4526594ad514e47a7e069
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/riscv/kernel/traps.c: In function 'do_trap_break':
> arch/riscv/kernel/traps.c:130:17: error: implicit declaration of
function 'get_break_insn_length' [-Werror=implicit-function-declaration]
regs->sepc += get_break_insn_length(regs->sepc);
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/get_break_insn_length +130 arch/riscv/kernel/traps.c
ee72e0e70cf7c8 Vincent Chen 2019-03-05 124
76d2a0493a17d4 Palmer Dabbelt 2017-07-10 125 asmlinkage void do_trap_break(struct
pt_regs *regs)
76d2a0493a17d4 Palmer Dabbelt 2017-07-10 126 {
727a399b7476d1 Vincent Chen 2019-09-23 127 if (user_mode(regs))
727a399b7476d1 Vincent Chen 2019-09-23 128 force_sig_fault(SIGTRAP, TRAP_BRKPT,
(void __user *)regs->sepc);
727a399b7476d1 Vincent Chen 2019-09-23 129 else if (report_bug(regs->sepc, regs)
== BUG_TRAP_TYPE_WARN)
ee72e0e70cf7c8 Vincent Chen 2019-03-05 @130 regs->sepc +=
get_break_insn_length(regs->sepc);
727a399b7476d1 Vincent Chen 2019-09-23 131 else
76d2a0493a17d4 Palmer Dabbelt 2017-07-10 132 die(regs, "Kernel BUG");
76d2a0493a17d4 Palmer Dabbelt 2017-07-10 133 }
76d2a0493a17d4 Palmer Dabbelt 2017-07-10 134
:::::: The code at line 130 was first introduced by commit
:::::: ee72e0e70cf7c846a4e0b6160f771da8f68571dc riscv: Add the support for c.ebreak check
in is_valid_bugaddr()
:::::: TO: Vincent Chen <vincentc(a)andestech.com>
:::::: CC: Palmer Dabbelt <palmer(a)sifive.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation