The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Naman Jain <namjain@linux.microsoft.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-kernel@vger.kernel.org, Wei Liu <wei.liu@kernel.org>,
	Roman Kisel <romank@linux.microsoft.com>,
	Saurabh Sengar <ssengar@linux.microsoft.com>,
	Michael Kelley <mhklinux@outlook.com>
Subject: drivers/hv/mshv_vtl_main.c:1002:14: warning: cast from 'void (*)(const u8 *)' (aka 'void (*)(const unsigned char *)') to 'smp_call_func_t' (aka 'void (*)(void *)') converts to incompatible function type
Date: Sat, 17 Jan 2026 03:17:09 +0800	[thread overview]
Message-ID: <202601170352.qbh3EKH5-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   983d014aafb14ee5e4915465bf8948e8f3a723b5
commit: 7bfe3b8ea6e30437e01fcb8e4f56ef6e4d986d0f Drivers: hv: Introduce mshv_vtl driver
date:   6 weeks ago
config: x86_64-buildonly-randconfig-001-20260117 (https://download.01.org/0day-ci/archive/20260117/202601170352.qbh3EKH5-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260117/202601170352.qbh3EKH5-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601170352.qbh3EKH5-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/hv/mshv_vtl_main.c:1002:14: warning: cast from 'void (*)(const u8 *)' (aka 'void (*)(const unsigned char *)') to 'smp_call_func_t' (aka 'void (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict]
    1002 |         on_each_cpu((smp_call_func_t)mshv_vtl_synic_mask_vmbus_sint, &mask.mask, 1);
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +1002 drivers/hv/mshv_vtl_main.c

   993	
   994	static int mshv_vtl_sint_ioctl_pause_msg_stream(struct mshv_sint_mask __user *arg)
   995	{
   996		static DEFINE_MUTEX(vtl2_vmbus_sint_mask_mutex);
   997		struct mshv_sint_mask mask;
   998	
   999		if (copy_from_user(&mask, arg, sizeof(mask)))
  1000			return -EFAULT;
  1001		guard(mutex)(&vtl2_vmbus_sint_mask_mutex);
> 1002		on_each_cpu((smp_call_func_t)mshv_vtl_synic_mask_vmbus_sint, &mask.mask, 1);
  1003		WRITE_ONCE(vtl_synic_mask_vmbus_sint_masked, mask.mask != 0);
  1004		if (mask.mask)
  1005			wake_up_interruptible_poll(&fd_wait_queue, EPOLLIN);
  1006	
  1007		return 0;
  1008	}
  1009	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-01-16 19:17 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=202601170352.qbh3EKH5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mhklinux@outlook.com \
    --cc=namjain@linux.microsoft.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=romank@linux.microsoft.com \
    --cc=ssengar@linux.microsoft.com \
    --cc=wei.liu@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox