Re: [PATCH v4 03/17] x86/mpx, x86/insn: Relocate insn util functions to a new insn-kernel

From: kbuild test robot
Date: Thu Feb 23 2017 - 05:58:36 EST


Hi Ricardo,

[auto build test ERROR on tip/auto-latest]
[also build test ERROR on v4.10 next-20170223]
[cannot apply to tip/x86/core]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Ricardo-Neri/x86-Enable-User-Mode-Instruction-Prevention/20170223-145356
config: x86_64-randconfig-ne0-02231751 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

Note: the linux-review/Ricardo-Neri/x86-Enable-User-Mode-Instruction-Prevention/20170223-145356 HEAD 34056233e7c134c8c4c6d8308592d2e0aed67f1b builds fine.
It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> arch/x86/lib/insn-eval.c:106:21: error: static declaration of 'insn_get_addr_ref' follows non-static declaration
static void __user *insn_get_addr_ref(struct insn *insn, struct pt_regs *regs)
^~~~~~~~~~~~~~~~~
In file included from arch/x86/lib/insn-eval.c:10:0:
arch/x86/include/asm/insn-eval.h:14:14: note: previous declaration of 'insn_get_addr_ref' was here
void __user *insn_get_addr_ref(struct insn *insn, struct pt_regs *regs);
^~~~~~~~~~~~~~~~~
arch/x86/lib/insn-eval.c:106:21: warning: 'insn_get_addr_ref' defined but not used [-Wunused-function]
static void __user *insn_get_addr_ref(struct insn *insn, struct pt_regs *regs)
^~~~~~~~~~~~~~~~~

vim +/insn_get_addr_ref +106 arch/x86/lib/insn-eval.c

100
101 /*
102 * return the address being referenced be instruction
103 * for rm=3 returning the content of the rm reg
104 * for rm!=3 calculates the address using SIB and Disp
105 */
> 106 static void __user *insn_get_addr_ref(struct insn *insn, struct pt_regs *regs)
107 {
108 unsigned long addr, base, indx;
109 int addr_offset, base_offset, indx_offset;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip