llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Valentin Schneider <vschneid@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Peter Zijlstra <peterz@infradead.org>,
	"Steven Rostedt (Google)" <rostedt@goodmis.org>
Subject: [peterz-queue:smp/core 7/12] kernel/smp.c:112:35: error: passing 'const struct cpumask *' to parameter of type 'struct cpumask *' discards qualifiers
Date: Thu, 23 Mar 2023 11:08:37 +0800	[thread overview]
Message-ID: <202303231040.y5rzdaUc-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-03-23  3:09 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=202303231040.y5rzdaUc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=vschneid@redhat.com \
    /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).