2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/misc/mei
Hans de Goede 97ce0fe2b7 mei: vsc: Cast tx_buf to (__be32 *) when passed to cpu_to_be32_array()
Commit f88c0c72ff ("mei: vsc: Use struct vsc_tp_packet as vsc-tp tx_buf
and rx_buf type") changed the type of tx_buf from "void *" to "struct
vsc_tp_packet *" and added a cast to (u32 *) when passing it to
cpu_to_be32_array() and the same change was made for rx_buf.

This triggers the type-check warning in sparse:

vsc-tp.c:327:28: sparse: expected restricted __be32 [usertype] *dst
vsc-tp.c:327:28: sparse: got unsigned int [usertype] *

vsc-tp.c:343:42: sparse: expected restricted __be32 const [usertype] *src
vsc-tp.c:343:42: sparse: got unsigned int [usertype] *

Fix this by casting to (__be32 *) instead.

Note actually changing the type of the buffers to "be32 *" is not an option
this buffer does actually contain a "struct vsc_tp_packet" and is used
as such most of the time. vsc_tp_rom_xfer() re-uses the buffers as just
dumb arrays of 32 bit words to talk to the device before the firmware has
booted, to avoid needing to allocate a separate buffer.

Fixes: f88c0c72ff ("mei: vsc: Use struct vsc_tp_packet as vsc-tp tx_buf and rx_buf type")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505071634.kZ0I7Va6-lkp@intel.com/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250507090728.115910-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-21 14:51:46 +02:00
..
gsc_proxy drm: move i915_component.h under include/drm/intel 2024-05-31 16:11:00 +03:00
hdcp drm: move i915_hdcp_interface.h under include/drm/intel 2024-05-31 16:11:36 +03:00
pxp Merge drm/drm-next into drm-intel-next 2024-06-19 11:38:31 +03:00
bus-fixup.c mei: bus-fixup: set timeout for MKHI send operations 2024-06-24 16:40:29 +02:00
bus.c mei: Remove unused functions 2025-02-20 15:24:13 +01:00
client.c mei: Remove unused functions 2025-02-20 15:24:13 +01:00
client.h mei: Remove unused functions 2025-02-20 15:24:13 +01:00
debugfs.c mei: debugfs: add pxp mode to devstate in debugfs 2022-09-12 15:23:11 +03:00
dma-ring.c misc: mei: dma-ring.c: fix kernel-doc warnings 2023-10-18 10:01:33 +02:00
gsc-me.c mei: gsc: remove unnecessary NULL pointer checks 2024-03-05 14:28:02 +00:00
hbm.c misc: mei: hbm.c: fix kernel-doc warnings 2023-10-18 10:01:33 +02:00
hbm.h mei: implement client dma setup. 2021-02-06 15:48:11 +01:00
hw-me-regs.h mei: me: add panther lake H DID 2025-04-15 16:22:15 +02:00
hw-me.c mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
hw-me.h mei: docs: add missing entries to kdoc in struct mei_cfg_idx 2023-10-18 10:01:33 +02:00
hw-txe-regs.h
hw-txe.c mei: Remove unused functions 2025-02-20 15:24:13 +01:00
hw-txe.h mei: Remove unused functions 2025-02-20 15:24:13 +01:00
hw.h mei: Avoid a bunch of -Wflex-array-member-not-at-end warnings 2024-04-11 15:13:30 +02:00
init.c mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
interrupt.c mei: Cast the cb->ext_hdr allocation type 2025-05-01 17:57:15 +02:00
Kconfig x86/cpu: Drop configuration options for early 64-bit CPUs 2025-02-27 11:19:06 +01:00
main.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Makefile mei: Add MEI hardware support for IVSC device 2023-12-07 11:41:40 +09:00
mei_dev.h mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
mei-trace.c
mei-trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
mkhi.h mei: mkhi: add memory ready command 2022-09-12 15:23:11 +03:00
pci-me.c mei: me: add panther lake H DID 2025-04-15 16:22:15 +02:00
pci-txe.c mei: txe: remove unnecessary NULL pointer checks 2024-03-05 14:28:02 +00:00
platform-vsc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
vsc-fw-loader.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
vsc-tp.c mei: vsc: Cast tx_buf to (__be32 *) when passed to cpu_to_be32_array() 2025-05-21 14:51:46 +02:00
vsc-tp.h mei: vsc: Unregister interrupt handler for system suspend 2024-04-11 15:15:53 +02:00