linux/drivers/crypto/intel/qat/qat_common
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
..
adf_accel_devices.h pci-v7.2-changes 2026-06-24 12:48:43 -07:00
adf_accel_engine.c crypto: qat - fix firmware loading failure for GEN6 devices 2026-03-15 13:23:12 +09:00
adf_admin.c crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_admin.h crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_aer.c crypto: qat - cancel work on re-enable SR-IOV timeout 2026-07-05 13:19:52 +08:00
adf_anti_rb.c crypto: qat - add anti-rollback support for GEN6 devices 2026-03-27 18:52:43 +09:00
adf_anti_rb.h crypto: qat - add anti-rollback support for GEN6 devices 2026-03-27 18:52:43 +09:00
adf_bank_state.c crypto: qat - relocate and rename bank state structure definition 2025-07-18 20:51:59 +10:00
adf_bank_state.h crypto: qat - relocate and rename bank state structure definition 2025-07-18 20:51:59 +10:00
adf_cfg_common.h crypto: qat - remove dead ADF_HEX code 2026-08-10 18:28:56 +10:00
adf_cfg_services.c crypto: qat - use strscpy_pad to simplify adf_service_string_to_mask 2026-07-17 18:09:21 +10:00
adf_cfg_services.h crypto: qat - use strscpy_pad to simplify adf_service_string_to_mask 2026-07-17 18:09:21 +10:00
adf_cfg_strings.h crypto: qat - add support for decompression service to GEN6 devices 2025-06-13 17:26:17 +08:00
adf_cfg.c crypto: qat - remove dead ADF_HEX code 2026-08-10 18:28:56 +10:00
adf_cfg.h crypto: qat - remove unused character device and IOCTLs 2026-05-22 20:25:28 +08:00
adf_clock.c crypto: qat - avoid division by zero 2024-02-24 08:41:20 +08:00
adf_clock.h crypto: qat - add measure clock frequency 2023-07-20 22:16:11 +12:00
adf_cnv_dbgfs.c crypto: qat - removed unused macro in adf_cnv_dbgfs.c 2024-02-24 08:41:20 +08:00
adf_cnv_dbgfs.h crypto: qat - add cnv_errors debugfs file 2023-10-13 18:31:07 +08:00
adf_common_drv.h crypto: qat - centralize bus master enable 2026-05-22 20:25:29 +08:00
adf_dbgfs.c crypto: qat - remove check after debugfs_create_dir() 2024-10-05 13:22:05 +08:00
adf_dbgfs.h crypto: qat - add missing function declaration in adf_dbgfs.h 2023-06-06 12:13:19 +08:00
adf_dc.c crypto: qat - update firmware api 2025-05-05 18:20:45 +08:00
adf_dc.h crypto: qat - refactor compression template logic 2025-05-05 18:20:44 +08:00
adf_dev_mgr.c crypto: qat - remove unused character device and IOCTLs 2026-05-22 20:25:28 +08:00
adf_fw_config.h crypto: qat - add wireless mode support for QAT GEN6 2026-03-22 11:17:58 +09:00
adf_fw_counters.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
adf_fw_counters.h crypto: qat - add fw_counters debugfs file 2023-07-20 22:15:30 +12:00
adf_gen2_config.c crypto: drivers - remove conditional return with no effect 2026-07-30 17:36:41 +10:00
adf_gen2_config.h
adf_gen2_hw_csr_data.c crypto: qat - relocate CSR access code 2024-04-02 10:47:43 +08:00
adf_gen2_hw_csr_data.h crypto: qat - relocate CSR access code 2024-04-02 10:47:43 +08:00
adf_gen2_hw_data.c crypto: qat - refactor compression template logic 2025-05-05 18:20:44 +08:00
adf_gen2_hw_data.h crypto: qat - refactor compression template logic 2025-05-05 18:20:44 +08:00
adf_gen2_pfvf.c crypto: qat - fix unintentional re-enabling of error interrupts 2024-07-06 10:20:00 +10:00
adf_gen2_pfvf.h crypto: qat - add missing header inclusion 2025-05-23 19:25:47 +08:00
adf_gen4_config.c crypto: qat - expose configuration functions 2025-05-05 18:20:44 +08:00
adf_gen4_config.h crypto: qat - expose configuration functions 2025-05-05 18:20:44 +08:00
adf_gen4_hw_csr_data.c crypto: qat - expand CSR operations for QAT GEN4 devices 2024-04-02 10:47:43 +08:00
adf_gen4_hw_csr_data.h crypto: qat - expand CSR operations for QAT GEN4 devices 2024-04-02 10:47:43 +08:00
adf_gen4_hw_data.c crypto: qat - add support for zstd 2026-04-03 08:56:13 +08:00
adf_gen4_hw_data.h crypto: qat - add get_svc_slice_cnt() in device data structure 2025-07-18 20:52:00 +10:00
adf_gen4_pfvf.c crypto: qat - relocate and rename 4xxx PF2VM definitions 2024-04-02 10:47:43 +08:00
adf_gen4_pfvf.h crypto: qat - add missing header inclusion 2025-05-23 19:25:47 +08:00
adf_gen4_pm_debugfs.c crypto: qat - relocate power management debugfs helper APIs 2025-07-18 20:51:59 +10:00
adf_gen4_pm.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
adf_gen4_pm.h crypto: qat - add pm_status debugfs file 2023-10-13 18:31:07 +08:00
adf_gen4_ras.c crypto: qat - remove access to parity register for QAT GEN4 2025-03-21 17:33:39 +08:00
adf_gen4_ras.h crypto: qat - add handling of errors from ERRSOU3 for QAT GEN4 2023-10-27 18:04:27 +08:00
adf_gen4_tl.c crypto: qat - validate slices count returned by FW 2024-04-26 17:26:09 +08:00
adf_gen4_tl.h crypto: qat - add support for ring pair level telemetry 2023-12-29 11:25:56 +08:00
adf_gen4_vf_mig.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
adf_gen4_vf_mig.h crypto: qat - add interface for live migration 2024-04-02 10:47:43 +08:00
adf_gen6_pm_dbgfs.c crypto: qat - enable power management debugfs for GEN6 devices 2025-07-18 20:51:59 +10:00
adf_gen6_pm.h crypto: qat - enable power management debugfs for GEN6 devices 2025-07-18 20:51:59 +10:00
adf_gen6_ras.c crypto: qat - enable RAS support for GEN6 devices 2025-05-19 13:48:19 +08:00
adf_gen6_ras.h crypto: qat - enable RAS support for GEN6 devices 2025-05-19 13:48:19 +08:00
adf_gen6_shared.c crypto: qat - add wireless mode support for QAT GEN6 2026-03-22 11:17:58 +09:00
adf_gen6_shared.h crypto: qat - add wireless mode support for QAT GEN6 2026-03-22 11:17:58 +09:00
adf_gen6_tl.c crypto: qat - add command queue telemetry counters for GEN6 2025-08-16 17:22:46 +08:00
adf_gen6_tl.h crypto: qat - enable telemetry for GEN6 devices 2025-07-18 20:52:00 +10:00
adf_heartbeat_dbgfs.c crypto: qat - uninitialized variable in adf_hb_error_inject_write() 2024-02-24 08:41:20 +08:00
adf_heartbeat_dbgfs.h crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_heartbeat_inject.c crypto: qat - fix heartbeat error injection 2026-05-05 16:15:24 +08:00
adf_heartbeat.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
adf_heartbeat.h crypto: qat - limit heartbeat notifications 2024-02-09 12:57:18 +08:00
adf_hw_arbiter.c crypto: qat - fix heartbeat error injection 2026-05-05 16:15:24 +08:00
adf_init.c crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_isr.c crypto: qat - fix VF2PF work teardown race in adf_disable_sriov() 2026-05-22 20:25:29 +08:00
adf_kpt.c crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_kpt.h crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_module.c crypto: qat - remove MODULE_VERSION 2026-05-22 20:25:29 +08:00
adf_mstate_mgr.c crypto: qat - use 2-arg strscpy where destination size is known 2026-07-05 13:19:52 +08:00
adf_mstate_mgr.h crypto: qat - implement interface for live migration 2024-04-02 10:47:43 +08:00
adf_pfvf_msg.h crypto: qat - update PFVF protocol for recovery 2024-02-09 12:57:18 +08:00
adf_pfvf_pf_msg.c crypto: qat - ensure correct order in VF restarting handler 2024-08-02 21:11:20 +08:00
adf_pfvf_pf_msg.h crypto: qat - update PFVF protocol for recovery 2024-02-09 12:57:18 +08:00
adf_pfvf_pf_proto.c crypto: qat - fix warning on adf_pfvf_pf_proto.c 2025-12-19 14:47:46 +08:00
adf_pfvf_pf_proto.h
adf_pfvf_utils.c
adf_pfvf_utils.h crypto: qat - move PFVF compat checker to a function 2024-04-02 10:47:43 +08:00
adf_pfvf_vf_msg.c crypto: qat - fix recovery flow for VFs 2024-08-02 21:11:20 +08:00
adf_pfvf_vf_msg.h crypto: qat - fix recovery flow for VFs 2024-08-02 21:11:20 +08:00
adf_pfvf_vf_proto.c crypto: qat - update PFVF protocol for recovery 2024-02-09 12:57:18 +08:00
adf_pfvf_vf_proto.h
adf_pm_dbgfs_utils.c crypto: qat - convert to common field_get() helper 2025-11-24 14:15:47 -05:00
adf_pm_dbgfs_utils.h crypto: qat - relocate power management debugfs helper APIs 2025-07-18 20:51:59 +10:00
adf_pm_dbgfs.c crypto: qat - add pm_status debugfs file 2023-10-13 18:31:07 +08:00
adf_pm_dbgfs.h crypto: qat - add pm_status debugfs file 2023-10-13 18:31:07 +08:00
adf_rl_admin.c crypto: qat - add compression slice count for rate limiting 2025-07-18 20:52:00 +10:00
adf_rl_admin.h crypto: qat - add rate limiting feature to qat_4xxx 2023-10-27 18:04:28 +08:00
adf_rl.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
adf_rl.h crypto: qat - add compression slice count for rate limiting 2025-07-18 20:52:00 +10:00
adf_sriov.c crypto: qat - use pci logging variants for PCI-specific messages 2026-05-29 14:05:29 +08:00
adf_sysfs_anti_rb.c crypto: qat - add anti-rollback support for GEN6 devices 2026-03-27 18:52:43 +09:00
adf_sysfs_anti_rb.h crypto: qat - add anti-rollback support for GEN6 devices 2026-03-27 18:52:43 +09:00
adf_sysfs_kpt.c crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_sysfs_kpt.h crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
adf_sysfs_ras_counters.c crypto: qat - replace scnprintf() with sysfs_emit() 2026-04-03 08:56:11 +08:00
adf_sysfs_ras_counters.h crypto: qat - add error counters 2023-10-27 18:04:27 +08:00
adf_sysfs_rl.c crypto: qat - Drop redundant local variables 2026-03-07 14:22:53 +09:00
adf_sysfs_rl.h crypto: qat - add rate limiting sysfs interface 2023-10-27 18:04:28 +08:00
adf_sysfs.c crypto: qat - use strscpy_pad to simplify adf_service_string_to_mask 2026-07-17 18:09:21 +10:00
adf_telemetry.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
adf_telemetry.h crypto: qat - add command queue telemetry counters for GEN6 2025-08-16 17:22:46 +08:00
adf_timer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
adf_timer.h crypto: qat - rename and relocate timer logic 2025-05-05 18:20:44 +08:00
adf_tl_debugfs.c crypto: qat - add command queue telemetry counters for GEN6 2025-08-16 17:22:46 +08:00
adf_tl_debugfs.h crypto: qat - add command queue telemetry counters for GEN6 2025-08-16 17:22:46 +08:00
adf_transport_access_macros.h
adf_transport_debug.c crypto: qat - use 2-arg strscpy where destination size is known 2026-07-05 13:19:52 +08:00
adf_transport_internal.h
adf_transport.c crypto: qat - adf_get_etr_base() helper 2024-04-02 10:47:43 +08:00
adf_transport.h
adf_vf_isr.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
icp_qat_fw_comp.h crypto: qat - add support for zstd 2026-04-03 08:56:13 +08:00
icp_qat_fw_init_admin.h crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
icp_qat_fw_la.h
icp_qat_fw_loader_handle.h crypto: qat - fix firmware loading failure for GEN6 devices 2026-03-15 13:23:12 +09:00
icp_qat_fw_pke.h
icp_qat_fw.h crypto: qat - add support for zstd 2026-04-03 08:56:13 +08:00
icp_qat_hal.h
icp_qat_hw_20_comp_defs.h
icp_qat_hw_20_comp.h crypto: qat - use swab32 macro 2026-04-03 08:56:13 +08:00
icp_qat_hw_51_comp_defs.h crypto: qat - add firmware headers for GEN6 devices 2025-05-05 18:20:45 +08:00
icp_qat_hw_51_comp.h crypto: qat - add firmware headers for GEN6 devices 2025-05-05 18:20:45 +08:00
icp_qat_hw.h crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
icp_qat_uclo.h crypto: qat - add GEN6 firmware loader 2025-05-05 18:20:44 +08:00
Makefile crypto: qat - add KPT support for GEN6 devices 2026-06-05 19:36:36 +08:00
qat_algs_send.c crypto: qat - fix deadlock in backlog processing 2023-10-27 18:04:28 +08:00
qat_algs_send.h
qat_algs.c crypto: qat - clear AES key schedule from stack 2026-07-05 13:19:52 +08:00
qat_asym_algs.c crypto: qat - validate RSA CRT component lengths 2026-06-11 13:53:58 +08:00
qat_bl.c crypto: qat - fix DMA direction for compression on GEN2 devices 2025-07-27 22:41:45 +10:00
qat_bl.h crypto: qat - Remove dst_null support 2025-03-21 17:33:39 +08:00
qat_comp_algs.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
qat_comp_req.h crypto: qat - add support for zstd 2026-04-03 08:56:13 +08:00
qat_comp_zstd_utils.c crypto: qat - add support for zstd 2026-04-03 08:56:13 +08:00
qat_comp_zstd_utils.h crypto: qat - add support for zstd 2026-04-03 08:56:13 +08:00
qat_compression.c crypto: qat - use 2-arg strscpy where destination size is known 2026-07-05 13:19:52 +08:00
qat_compression.h crypto: qat - refactor compression template logic 2025-05-05 18:20:44 +08:00
qat_crypto.c crypto: qat - fix comment structure 2024-02-24 08:41:20 +08:00
qat_crypto.h
qat_hal.c crypto: qat - fix firmware loading failure for GEN6 devices 2026-03-15 13:23:12 +09:00
qat_mig_dev.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qat_uclo.c crypto: qat - add anti-rollback support for GEN6 devices 2026-03-27 18:52:43 +09:00