All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [peterz-queue:x86/static_call 13/18] arch/x86/kernel/static_call.c:38 __static_call_transform() error: uninitialized symbol 'code'.
Date: Wed, 19 Aug 2020 08:11:04 +0800	[thread overview]
Message-ID: <202008190801.t2HEzoVT%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-08-19  0:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202008190801.t2HEzoVT%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.