linux/drivers/infiniband/hw/mlx5
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
..
ah.c RDMA/mlx5: Handle errors returned from mlx5r_ib_rate() 2025-03-06 03:22:08 -05:00
cmd.c RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cmd.h RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cong.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
counters.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
counters.h RDMA/mlx5: Refactor optional counters steering code 2025-07-23 03:38:57 -04:00
cq.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
data_direct.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
data_direct.h RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
devx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
devx.h RDMA/mlx5: Check enabled UCAPs when creating ucontext 2025-03-09 13:13:02 -04:00
dm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dm.h RDMA/mlx5: Expose UAPI to query DM 2021-04-13 19:36:37 -03:00
dmah.c RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
dmah.h RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
doorbell.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fs.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
fs.h RDMA/mlx5: Add multiple priorities support to RDMA TRANSPORT userspace tables 2025-06-25 04:00:33 -04:00
gsi.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
ib_rep.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ib_rep.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
ib_virt.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
macsec.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
macsec.h RDMA/mlx5: Handles RoCE MACsec steering rules addition and deletion 2023-08-20 12:35:24 +03:00
mad.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
main.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
Makefile RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
mem.c net/mlx5: Reimplement write combining test 2024-06-16 18:33:59 +03:00
mlx5_ib.h RDMA/mlx5: Fix UMR hang in LAG error state unload 2026-01-18 11:04:07 -05:00
mr.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
odp.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qos.c RDMA/core: Allow the ioctl layer to abort a fully created uobject 2020-05-21 20:10:46 -03:00
qp.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qp.h RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
qpc.c RDMA/mlx5: Fix error flow upon firmware failure for RQ destruction 2025-05-05 11:44:37 -04:00
restrack.c RDMA/mlx5: Extend ODP statistics with operation count 2024-12-10 04:09:09 -05:00
restrack.h RDMA/mlx5: Separate restrack callbacks initialization from main.c 2020-07-07 14:05:51 -03:00
srq.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
srq.h RDMA/mlx5: Lower setting the umem's PAS for SRQ 2020-11-16 16:53:30 -04:00
srq_cmd.c RDMA/mlx5: Lower setting the umem's PAS for SRQ 2020-11-16 16:53:30 -04:00
std_types.c RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler 2026-01-27 07:04:18 -05:00
umr.c RDMA/mlx5: Enable Data-Direct with Relaxed Ordering 2025-08-25 14:40:29 -03:00
umr.h RDMA/mlx5: Optimize DMABUF mkey page size 2025-07-13 03:14:19 -04:00
wr.c RDMA/mlx5: Fix fortify source warning while accessing Eth segment 2024-01-31 11:15:17 +02:00
wr.h RDMA/mlx5: Expose wqe posting helpers outside of wr.c 2022-04-25 11:53:00 -03:00