linux/drivers/thunderbolt
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
acpi.c thunderbolt: Move pci_device out of tb_nhi 2026-05-21 14:29:05 +02:00
cap.c thunderbolt: Update cap.c function documentation 2025-09-17 07:32:58 +02:00
clx.c thunderbolt: Update clx.c function documentation 2025-09-17 07:32:58 +02:00
configfs.c thunderbolt: Add support for ConfigFS 2026-05-19 14:20:18 +02:00
ctl.c thunderbolt: Move pci_device out of tb_nhi 2026-05-21 14:29:05 +02:00
ctl.h thunderbolt: Add missing documentation in ctl.h tb_cfg_request struct 2025-09-17 07:32:58 +02:00
debugfs.c thunderbolt: debugfs: Replace get_zeroed_page() with kzalloc() 2026-08-10 12:50:16 +02:00
dma_port.c thunderbolt: dma_port: kmalloc_array + kzalloc to flex 2026-03-18 14:31:56 +01:00
dma_port.h
dma_test.c thunderbolt: Drop comma after device id array terminator 2026-07-27 11:59:44 +02:00
domain.c thunderbolt: Add quirk to reset host interface on DMA path teardown for AMD USB4 routers 2026-08-07 08:14:26 +02:00
eeprom.c thunderbolt: Bound the DROM dual link port number before indexing sw->ports 2026-07-27 11:58:54 +02:00
icm.c thunderbolt: icm: Preserve USB4 proxy data-valid bit 2026-07-27 13:04:09 +02:00
Kconfig thunderbolt: Add support for USB4STREAM 2026-05-19 14:20:18 +02:00
lc.c thunderbolt: Fix typos in lc.c 2025-11-17 08:24:23 +01:00
Makefile thunderbolt: Separate out common NHI bits 2026-05-21 14:29:05 +02:00
nhi_regs.h thunderbolt: Add quirk to reset host interface on DMA path teardown for AMD USB4 routers 2026-08-07 08:14:26 +02:00
nhi.c thunderbolt: Changes for v7.3 merge window 2026-08-19 10:01:59 +02:00
nhi.h thunderbolt: Add quirk to reset host interface on DMA path teardown for AMD USB4 routers 2026-08-07 08:14:26 +02:00
nvm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
path.c thunderbolt: Activate path hops from source to destination 2026-05-20 11:54:34 +02:00
pci.c thunderbolt: Add quirk to reset host interface on DMA path teardown for AMD USB4 routers 2026-08-07 08:14:26 +02:00
property.c USB/Thunderbolt driver changes for 7.2-rc1 2026-06-22 12:09:47 -07:00
quirks.c thunderbolt: Disable CLx on Titan Ridge-based devices with old firmware 2026-03-02 07:51:58 +01:00
retimer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sb_regs.h
stream.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
switch.c thunderbolt: Assert downstream port reset on shutdown 2026-07-27 11:59:43 +02:00
tb_msgs.h thunderbolt: Notify userspace about firmware CM tunneling events 2025-04-24 08:24:39 +03:00
tb_regs.h thunderbolt: Increase Notification Timeout to 255 ms for USB4 routers 2026-05-20 11:54:35 +02:00
tb.c thunderbolt: Changes for v7.3 merge window 2026-08-19 10:01:59 +02:00
tb.h thunderbolt: Assert downstream port reset on shutdown 2026-07-27 11:59:43 +02:00
test.c thunderbolt: test: Release third DP tunnel 2026-06-01 12:37:32 +02:00
tmu.c thunderbolt: Fix typos in tmu.c 2025-11-17 08:24:24 +01:00
trace.h
tunnel.c thunderbolt: Clamp DMA tunnel credits to what a hop register can hold 2026-08-11 05:57:59 +02:00
tunnel.h thunderbolt: tunnel: Simplify allocation 2026-04-07 09:00:26 +02:00
usb4_port.c thunderbolt: Move pci_device out of tb_nhi 2026-05-21 14:29:05 +02:00
usb4.c thunderbolt: Increase timeout for Configuration Ready bit 2026-05-20 11:54:34 +02:00
xdomain.c thunderbolt: xdomain: Notify peers after enumeration 2026-07-27 11:59:44 +02:00