linux/drivers/mailbox
Kees Cook 69050f8d6d treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-21 01:02:28 -08:00
..
arm_mhu.c mailbox: arm_mhu: Constify amba_id table 2025-03-26 20:58:25 -05:00
arm_mhu_db.c mailbox: arm_mhu_db: Constify amba_id table 2025-03-26 20:58:25 -05:00
arm_mhuv2.c mailbox: arm_mhuv2: Constify amba_id table 2025-03-26 20:58:25 -05:00
arm_mhuv3.c mailbox: arm_mhuv3: fix typo in comment 2026-01-24 18:42:39 -06:00
armada-37xx-rwtm-mailbox.c treewide: change my e-mail address, fix my name 2021-04-09 14:54:23 -07:00
ast2700-mailbox.c mailbox: aspeed: add mailbox driver for AST27XX series SoC 2025-08-06 12:45:05 -05:00
bcm-flexrm-mailbox.c mailbox: bcm-ferxrm-mailbox: Use default primary handler 2026-02-01 18:48:20 -06:00
bcm-pdc-mailbox.c mailbox: Switch back to struct platform_driver::remove() 2024-11-24 13:11:01 -06:00
bcm2835-mailbox.c mailbox: bcm2835: Fix timeout during suspend mode 2024-09-22 19:19:17 -05:00
bcm74110-mailbox.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
cix-mailbox.c mailbox: cix: fix typo in error message 2026-01-24 18:42:39 -06:00
cv1800-mailbox.c mailbox: Remove mailbox_client.h from controller drivers 2026-02-01 18:48:01 -06:00
exynos-mailbox.c mailbox: exynos: drop unneeded runtime pointer (pclk) 2026-01-24 18:42:39 -06:00
hi3660-mailbox.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
hi6220-mailbox.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
imx-mailbox.c mailbox: imx: Skip the suspend flag for i.MX7ULP 2026-01-24 18:42:39 -06:00
Kconfig mailbox: Improve RISCV_SBI_MPXY_MBOX guidance 2026-01-24 18:42:39 -06:00
mailbox-altera.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
mailbox-mchp-ipc-sbi.c mailbox: mchp-ipc-sbi: fix uninitialized symbol and other smatch warnings 2026-01-24 18:42:39 -06:00
mailbox-mpfs.c mailbox: mpfs: fix copy and paste bug in probe 2025-01-18 16:04:51 -06:00
mailbox-sti.c mailbox: Use device_get_match_data() 2023-10-15 12:39:16 -05:00
mailbox-test.c mailbox: mailbox-test: Fix debugfs_create_dir error checking 2025-11-28 09:31:52 -06:00
mailbox-th1520.c mailbox: th1520: fix clock imbalance on probe failure 2025-11-28 09:47:44 -06:00
mailbox-xgene-slimpro.c mailbox: xgene-slimpro: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
mailbox.c mailbox: Prevent out-of-bounds access in fw_mbox_index_xlate() 2026-01-18 12:50:45 -06:00
mailbox.h mailbox: explicitly include <linux/bits.h> 2025-03-26 20:58:25 -05:00
Makefile mailbox: mediatek: Add mtk-vcp-mailbox driver 2026-01-18 12:50:45 -06:00
mtk-adsp-mailbox.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
mtk-cmdq-mailbox.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
mtk-gpueb-mailbox.c mailbox: mtk-gpueb: Add missing 'static' to mailbox ops struct 2025-11-28 09:31:53 -06:00
mtk-vcp-mailbox.c mailbox: mediatek: Add mtk-vcp-mailbox driver 2026-01-18 12:50:45 -06:00
omap-mailbox.c mailbox: Remove mailbox_client.h from controller drivers 2026-02-01 18:48:01 -06:00
pcc.c mailbox: pcc: Remove spurious IRQF_ONESHOT usage 2026-01-24 18:42:33 -06:00
pl320-ipc.c mailbox: pl320-ipc: Constify amba_id table 2025-03-26 20:58:24 -05:00
platform_mhu.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
qcom-apcs-ipc-mailbox.c mailbox: remove unneeded 'fast_io' parameter in regmap_config 2025-10-06 18:14:00 -05:00
qcom-cpucp-mbox.c mailbox: qcom-cpucp: Mark the irq with IRQF_NO_SUSPEND flag 2024-11-24 12:56:31 -06:00
qcom-ipcc.c mailbox: Use dev_fwnode() 2025-08-06 12:41:38 -05:00
riscv-sbi-mpxy-mbox.c mailbox/riscv-sbi-mpxy: Add ACPI support 2025-09-25 19:49:17 -06:00
rockchip-mailbox.c mailbox: rockchip: fix a typo in module autoloading 2024-09-22 19:19:17 -05:00
sprd-mailbox.c mailbox: sprd: mask interrupts that are not handled 2026-02-01 18:59:52 -06:00
stm32-ipcc.c mailbox: Switch back to struct platform_driver::remove() 2024-11-24 13:11:01 -06:00
sun6i-msgbox.c mailbox: Switch back to struct platform_driver::remove() 2024-11-24 13:11:01 -06:00
tegra-hsp.c mailbox: tegra-hsp: Define dimensioning masks in SoC data 2025-03-26 20:58:24 -05:00
ti-msgmgr.c mailbox: ti-msgmgr: Remove use of of_match_ptr() helper 2024-11-24 12:57:49 -06:00
zynqmp-ipi-mailbox.c mailbox: zynqmp-ipi: Simplify with scoped for each OF child loop 2026-01-24 18:42:40 -06:00