linux/drivers/scsi/qla2xxx
Kees Cook 189f164e57 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses
Conversion performed via this Coccinelle script:

  // SPDX-License-Identifier: GPL-2.0-only
  // Options: --include-headers-for-types --all-includes --include-headers --keep-comments
  virtual patch

  @gfp depends on patch && !(file in "tools") && !(file in "samples")@
  identifier ALLOC = {kmalloc_obj,kmalloc_objs,kmalloc_flex,
 		    kzalloc_obj,kzalloc_objs,kzalloc_flex,
		    kvmalloc_obj,kvmalloc_objs,kvmalloc_flex,
		    kvzalloc_obj,kvzalloc_objs,kvzalloc_flex};
  @@

  	ALLOC(...
  -		, GFP_KERNEL
  	)

  $ make coccicheck MODE=patch COCCI=gfp.cocci

Build and boot tested x86_64 with Fedora 42's GCC and Clang:

Linux version 6.19.0+ (user@host) (gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7), GNU ld version 2.44-12.fc42) #1 SMP PREEMPT_DYNAMIC 1970-01-01
Linux version 6.19.0+ (user@host) (clang version 20.1.8 (Fedora 20.1.8-4.fc42), LLD 20.1.8) #1 SMP PREEMPT_DYNAMIC 1970-01-01

Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-02-22 08:26:33 -08:00
..
Kconfig scsi: qla2xxx: Remove firmware URL 2025-07-08 22:07:20 -04:00
Makefile scsi: qla2xxx: edif: Add start + stop bsgs 2021-07-27 00:06:42 -04:00
qla_attr.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
qla_bsg.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qla_bsg.h scsi: qla2xxx: Add bsg interface to support firmware img validation 2025-12-16 22:34:22 -05:00
qla_dbg.c scsi: qla2xxx: target: Improve safety of cmd lookup by handle 2025-11-12 18:17:28 -05:00
qla_dbg.h scsi: qla2xxx: Remove unused ql_log_qp 2025-04-21 21:49:17 -04:00
qla_def.h scsi: qla2xxx: Add bsg interface to support firmware img validation 2025-12-16 22:34:22 -05:00
qla_devtbl.h
qla_dfs.c scsi: qla2xxx: Avoid stack frame size warning in qla_dfs 2025-06-24 21:12:53 -04:00
qla_dsd.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
qla_edif.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qla_edif.h scsi: qla2xxx: Relocate/rename vp map 2023-01-11 23:48:25 -05:00
qla_edif_bsg.h scsi: qla2xxx: edif: Fix clang warning 2023-01-11 23:48:26 -05:00
qla_fw.h scsi: qla2xxx: Add NVMe parameters support in Auxiliary Image Status 2022-09-01 00:30:55 -04:00
qla_gbl.h scsi: qla2xxx: Add bsg interface to support firmware img validation 2025-12-16 22:34:22 -05:00
qla_gs.c scsi: qla2xxx: Validate sp before freeing associated memory 2025-12-16 22:34:23 -05:00
qla_init.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
qla_inline.h Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qla_iocb.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
qla_isr.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qla_mbx.c scsi: qla2xxx: Add bsg interface to support firmware img validation 2025-12-16 22:34:22 -05:00
qla_mid.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qla_mr.c scsi: qla2xxx: Avoid possible run-time warning with long model_num 2024-04-25 10:41:47 -07:00
qla_mr.h scsi: qla2xxx: Mark device strings as nonstring 2025-02-28 11:51:32 -08:00
qla_nvme.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
qla_nvme.h scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe 2023-08-21 17:45:14 -04:00
qla_nx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qla_nx.h scsi: qla2xxx: Validate MCU signature before executing MBC 03h 2025-12-16 22:34:22 -05:00
qla_nx2.c scsi: qla2xxx: Use named initializers for q_dev_state 2022-02-22 21:11:07 -05:00
qla_nx2.h
qla_os.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Validate MCU signature before executing MBC 03h 2025-12-16 22:34:22 -05:00
qla_target.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qla_target.h scsi: qla2xxx: target: Add back SRR support 2025-11-12 18:17:28 -05:00
qla_tmpl.c scsi: qla2xxx: Fix premature hw access after PCI error 2022-01-24 23:57:30 -05:00
qla_tmpl.h scsi: qla2xxx: Fix crash during driver load on big endian machines 2020-12-09 11:34:17 -05:00
qla_version.h scsi: qla2xxx: Update version to 10.02.10.100-k 2025-12-16 22:34:23 -05:00
tcm_qla2xxx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tcm_qla2xxx.h