Re: [PATCH 1/1] mshv: Fix compiler warning about cast converting incompatible function type
From: Wei Liu
Date: Wed Feb 04 2026 - 01:09:08 EST
On Mon, Jan 19, 2026 at 11:02:01AM +0530, Naman Jain wrote:
>
>
> On 1/18/2026 10:32 PM, mhkelley58@xxxxxxxxx wrote:
> > From: Michael Kelley <mhklinux@xxxxxxxxxxx>
> >
> > In mshv_vtl_sint_ioctl_pause_msg_stream(), the reference to function
> > mshv_vtl_synic_mask_vmbus_sint() is cast to type smp_call_func_t. The
> > cast generates a compiler warning because the function signature of
> > mshv_vtl_synic_mask_vmbus_sint() doesn't match smp_call_func_t.
> >
> > There's no actual bug here because the mis-matched function signatures
> > are compatible at runtime. Nonetheless, eliminate the compiler warning
> > by changing the function signature of mshv_vtl_synic_mask_vmbus_sint()
> > to match what on_each_cpu() expects. Remove the cast because it is then
> > no longer necessary.
> >
> > No functional change.
> >
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202601170352.qbh3EKH5-lkp@xxxxxxxxx/
> > Signed-off-by: Michael Kelley <mhklinux@xxxxxxxxxxx>
[...]
>
> Reviewed-by: Naman Jain <namjain@xxxxxxxxxxxxxxxxxxx>
>
Queued.