linux/drivers/scsi/aic7xxx
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
..
aicasm scsi: aic7xxx: Fix build 'aicasm' warning 2025-01-10 17:52:39 -05:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kconfig.aic7xxx scsi: aic7xxx: Indent kconfig help text 2024-04-08 22:01:19 -04:00
Kconfig.aic79xx scsi: aic7xxx: Indent kconfig help text 2024-04-08 22:01:19 -04:00
Makefile kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2024-05-10 04:34:52 +09:00
aic7xxx.h scsi: aic7xxx: Remove unused aic7770_find_device() 2024-10-03 22:00:08 -04:00
aic7xxx.reg scsi: aic7xxx: Spelling s/configuraion/configuration/ 2019-06-18 19:46:25 -04:00
aic7xxx.seq
aic7xxx_93cx6.c scsi: aic7xxx: aic79xx: Whitespace cleanup 2021-01-22 21:14:08 -05:00
aic7xxx_93cx6.h
aic7xxx_core.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aic7xxx_inline.h
aic7xxx_osm.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aic7xxx_osm.h scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic7xxx_osm_pci.c scsi: aic7xxx: Return ahc_linux_register_host()'s value rather than zero 2023-12-05 21:18:40 -05:00
aic7xxx_pci.c scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic7xxx_pci.h
aic7xxx_proc.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aic7xxx_reg.h_shipped
aic7xxx_reg_print.c_shipped
aic7xxx_seq.h_shipped
aic79xx.h scsi: aic79xx: Fix spelling of version 2021-02-22 22:23:47 -05:00
aic79xx.reg
aic79xx.seq
aic79xx_core.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aic79xx_inline.h
aic79xx_osm.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aic79xx_osm.h scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic79xx_osm_pci.c scsi: aic7xxx: aic79xx: Whitespace cleanup 2021-01-22 21:14:08 -05:00
aic79xx_pci.c scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic79xx_pci.h
aic79xx_proc.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aic79xx_reg.h_shipped
aic79xx_reg_print.c_shipped
aic79xx_seq.h_shipped
aic7770.c scsi: aic7xxx: Remove unused aic7770_find_device() 2024-10-03 22:00:08 -04:00
aic7770_osm.c scsi: aic7xxx: Return negative error codes in aic7770_probe() 2023-12-05 21:18:40 -05:00
aiclib.h scsi: aic7xxx: aic79xx: Remove driver-defined SAM status definitions 2021-01-22 21:14:08 -05:00
cam.h
queue.h
scsi_iu.h
scsi_message.h scsi: aic7xxx: Restore several defines for aic7xxx firmware build 2021-05-21 22:02:42 -04:00