From: kernel test robot <lkp@intel.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org, oe-kbuild-all@lists.linux.dev
Subject: [powerpc:topic/cpu-smt 6/9] kernel/cpu.c:2583:36: error: 'cpu_smt_max_threads' undeclared; did you mean 'cpu_smt_num_threads'?
Date: Wed, 31 May 2023 23:32:25 +0800 [thread overview]
Message-ID: <202305312356.SfvJ8Iwh-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git topic/cpu-smt
head: 7bb712baeffc4640f5511feec68add6f1767413f
commit: 570b70824d468facd197e44b6d40c9e79886b81c [6/9] cpu/SMT: Allow enabling partial SMT states via sysfs
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20230531/202305312356.SfvJ8Iwh-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
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/powerpc/linux.git/commit/?id=570b70824d468facd197e44b6d40c9e79886b81c
git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
git fetch --no-tags powerpc topic/cpu-smt
git checkout 570b70824d468facd197e44b6d40c9e79886b81c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=parisc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305312356.SfvJ8Iwh-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/cpu.c: In function 'control_show':
>> kernel/cpu.c:2583:36: error: 'cpu_smt_max_threads' undeclared (first use in this function); did you mean 'cpu_smt_num_threads'?
2583 | cpu_smt_num_threads != cpu_smt_max_threads)
| ^~~~~~~~~~~~~~~~~~~
| cpu_smt_num_threads
kernel/cpu.c:2583:36: note: each undeclared identifier is reported only once for each function it appears in
vim +2583 kernel/cpu.c
2571
2572 static ssize_t control_show(struct device *dev,
2573 struct device_attribute *attr, char *buf)
2574 {
2575 const char *state = smt_states[cpu_smt_control];
2576
2577 /*
2578 * If SMT is enabled but not all threads are enabled then show the
2579 * number of threads. If all threads are enabled show "on". Otherwise
2580 * show the state name.
2581 */
2582 if (cpu_smt_control == CPU_SMT_ENABLED &&
> 2583 cpu_smt_num_threads != cpu_smt_max_threads)
2584 return sysfs_emit(buf, "%d\n", cpu_smt_num_threads);
2585
2586 return snprintf(buf, PAGE_SIZE - 2, "%s\n", state);
2587 }
2588
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-05-31 15:33 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=202305312356.SfvJ8Iwh-lkp@intel.com \
--to=lkp@intel.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=oe-kbuild-all@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;
as well as URLs for NNTP newsgroup(s).