* [peterz-queue:smp/core 7/12] kernel/smp.c:112:35: error: passing 'const struct cpumask *' to parameter of type 'struct cpumask *' discards qualifiers
@ 2023-03-23 3:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-23 3:08 UTC (permalink / raw)
To: Valentin Schneider
Cc: llvm, oe-kbuild-all, Peter Zijlstra, Steven Rostedt (Google)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git smp/core
head: 74a78c26e097e9dd14b898429103d6a312fe1d5c
commit: 272d3dd1133b0d5291a9f587a2bb7ec8516c72ba [7/12] smp: Trace IPIs sent via arch_send_call_function_ipi_mask()
config: riscv-randconfig-r001-20230322 (https://download.01.org/0day-ci/archive/20230323/202303231040.y5rzdaUc-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=272d3dd1133b0d5291a9f587a2bb7ec8516c72ba
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue smp/core
git checkout 272d3dd1133b0d5291a9f587a2bb7ec8516c72ba
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303231040.y5rzdaUc-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/smp.c:112:35: error: passing 'const struct cpumask *' to parameter of type 'struct cpumask *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
arch_send_call_function_ipi_mask(mask);
^~~~
arch/riscv/include/asm/smp.h:40:55: note: passing argument to parameter 'mask' here
void arch_send_call_function_ipi_mask(struct cpumask *mask);
^
1 error generated.
vim +112 kernel/smp.c
107
108 static __always_inline void
109 send_call_function_ipi_mask(const struct cpumask *mask)
110 {
111 trace_ipi_send_cpumask(mask, _RET_IP_, NULL);
> 112 arch_send_call_function_ipi_mask(mask);
113 }
114
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-23 3:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 3:08 [peterz-queue:smp/core 7/12] kernel/smp.c:112:35: error: passing 'const struct cpumask *' to parameter of type 'struct cpumask *' discards qualifiers kernel test robot
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).