CC: [email protected] TO: Peter Zijlstra <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/static_call head: 9c45f6868feeab595271da9e16633a48bffd7930 commit: c2406e1457f0ae2887ebf540d2658885fa7e8416 [13/18] static_call: Add static_call_cond() :::::: branch date: 10 hours ago :::::: commit date: 10 hours ago config: x86_64-randconfig-m001-20200818 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: arch/x86/kernel/static_call.c:38 __static_call_transform() error: uninitialized symbol 'code'. # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=c2406e1457f0ae2887ebf540d2658885fa7e8416 git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git git fetch --no-tags peterz-queue x86/static_call git checkout c2406e1457f0ae2887ebf540d2658885fa7e8416 vim +/code +38 arch/x86/kernel/static_call.c c2406e1457f0ae Peter Zijlstra 2019-10-03 13 c2406e1457f0ae Peter Zijlstra 2019-10-03 14 static void __static_call_transform(void *insn, enum insn_type type, void *func) e73ac4b6b2e16a Josh Poimboeuf 2018-11-26 15 { c2406e1457f0ae Peter Zijlstra 2019-10-03 16 int size = CALL_INSN_SIZE; c2406e1457f0ae Peter Zijlstra 2019-10-03 17 const void *code; c2406e1457f0ae Peter Zijlstra 2019-10-03 18 c2406e1457f0ae Peter Zijlstra 2019-10-03 19 switch (type) { c2406e1457f0ae Peter Zijlstra 2019-10-03 20 case CALL: c2406e1457f0ae Peter Zijlstra 2019-10-03 21 code = text_gen_insn(CALL_INSN_OPCODE, insn, func); c2406e1457f0ae Peter Zijlstra 2019-10-03 22 break; c2406e1457f0ae Peter Zijlstra 2019-10-03 23 c2406e1457f0ae Peter Zijlstra 2019-10-03 24 case NOP: c2406e1457f0ae Peter Zijlstra 2019-10-03 25 code = ideal_nops[NOP_ATOMIC5]; c2406e1457f0ae Peter Zijlstra 2019-10-03 26 break; c2406e1457f0ae Peter Zijlstra 2019-10-03 27 c2406e1457f0ae Peter Zijlstra 2019-10-03 28 case JMP: c2406e1457f0ae Peter Zijlstra 2019-10-03 29 code = text_gen_insn(JMP32_INSN_OPCODE, insn, func); c2406e1457f0ae Peter Zijlstra 2019-10-03 30 break; c2406e1457f0ae Peter Zijlstra 2019-10-03 31 c2406e1457f0ae Peter Zijlstra 2019-10-03 32 case RET: c2406e1457f0ae Peter Zijlstra 2019-10-03 33 code = text_gen_insn(RET_INSN_OPCODE, insn, func); c2406e1457f0ae Peter Zijlstra 2019-10-03 34 size = RET_INSN_SIZE; c2406e1457f0ae Peter Zijlstra 2019-10-03 35 break; c2406e1457f0ae Peter Zijlstra 2019-10-03 36 } e73ac4b6b2e16a Josh Poimboeuf 2018-11-26 37 c2406e1457f0ae Peter Zijlstra 2019-10-03 @38 if (memcmp(insn, code, size) == 0) e73ac4b6b2e16a Josh Poimboeuf 2018-11-26 39 return; e73ac4b6b2e16a Josh Poimboeuf 2018-11-26 40 c2406e1457f0ae Peter Zijlstra 2019-10-03 41 text_poke_bp(insn, code, size, NULL); e73ac4b6b2e16a Josh Poimboeuf 2018-11-26 42 } e73ac4b6b2e16a Josh Poimboeuf 2018-11-26 43 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
