All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:x86/static_call 13/18] arch/x86/kernel/static_call.c:38 __static_call_transform() error: uninitialized symbol 'code'.
@ 2020-08-19  0:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-19  0:11 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3258 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Peter Zijlstra <peterz@infradead.org>

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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

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/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29624 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-19  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-19  0:11 [peterz-queue:x86/static_call 13/18] arch/x86/kernel/static_call.c:38 __static_call_transform() error: uninitialized symbol 'code' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.