From: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [peterz-queue:x86/core 1/2] arch/x86/kernel/dumpstack.c:37:6: warning: variable 'type' set but not used
Date: Fri, 17 Sep 2021 00:38:54 +0800 [thread overview]
Message-ID: <202109170051.zGWjLhuw-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/core
head: 299b8f1b37da2b189cbc17a22621df9af53ed7b3
commit: ade10c0487ed86092bc4a2ee117664e8b71fedfc [1/2] x86/dumpstack/64: Add guard pages to stack_info
config: x86_64-randconfig-c007-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=ade10c0487ed86092bc4a2ee117664e8b71fedfc
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/core
git checkout ade10c0487ed86092bc4a2ee117664e8b71fedfc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/dumpstack.c:37:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
int type = STACK_TYPE_TASK;
^
1 warning generated.
vim +/type +37 arch/x86/kernel/dumpstack.c
31
32 bool noinstr in_task_stack(unsigned long *stack, struct task_struct *task,
33 struct stack_info *info)
34 {
35 void *begin = task_stack_page(task);
36 void *end = begin + THREAD_SIZE;
> 37 int type = STACK_TYPE_TASK;
38
39 if ((void *)stack < begin || (void *)stack >= end) {
40 if (in_stack_guard(stack, begin, end)) {
41 type |= STACK_TYPE_GUARD;
42 goto fill_info;
43 }
44 return false;
45 }
46
47 fill_info:
48 info->type = STACK_TYPE_TASK;
49 info->begin = begin;
50 info->end = end;
51 info->next_sp = NULL;
52
53 return true;
54 }
55
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36054 bytes --]
reply other threads:[~2021-09-16 16:39 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=202109170051.zGWjLhuw-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox