linux/drivers/net/ethernet/sfc/siena
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
..
bitfield.h sfc: Copy shared files needed for Siena (part 1) 2022-05-10 15:38:14 -07:00
efx_channels.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
efx_channels.h sfc: siena: Have a unique wrapper ifndef for efx channels header 2022-05-18 20:07:58 -07:00
efx_common.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
efx_common.h sfc/siena: Make MCDI logging support specific for Siena 2022-05-12 16:49:30 -07:00
efx.c sfc-siena: Implement ndo_hwtstamp_(get|set) 2023-12-05 07:45:43 -08:00
efx.h siena: Make SRIOV support specific for Siena 2022-05-12 16:49:29 -07:00
enum.h sfc/siena: Rename functions in efx headers to avoid conflicts with sfc 2022-05-10 15:38:14 -07:00
ethtool_common.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ethtool_common.h net: sfc: siena: convert to use .get_rx_ring_count 2026-01-23 10:53:06 -08:00
ethtool.c net: sfc: siena: convert to use .get_rx_ring_count 2026-01-23 10:53:06 -08:00
farch_regs.h sfc: Copy shared files needed for Siena (part 1) 2022-05-10 15:38:14 -07:00
farch.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
filter.h sfc: Copy shared files needed for Siena (part 1) 2022-05-10 15:38:14 -07:00
io.h asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros 2023-08-18 10:12:32 -07:00
Kconfig sfc: siena: Fix Kconfig dependencies 2022-05-13 10:18:57 -07:00
Makefile siena: Make SRIOV support specific for Siena 2022-05-12 16:49:29 -07:00
mcdi_mon.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
mcdi_pcol.h net: Fix typos 2025-07-25 10:29:07 -07:00
mcdi_port_common.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mcdi_port_common.h sfc/siena: Rename functions in mcdi headers to avoid conflicts with sfc 2022-05-10 15:38:15 -07:00
mcdi_port.c sfc/siena: Rename functions in mcdi headers to avoid conflicts with sfc 2022-05-10 15:38:15 -07:00
mcdi_port.h sfc/siena: Rename functions in mcdi headers to avoid conflicts with sfc 2022-05-10 15:38:15 -07:00
mcdi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mcdi.h sfc/siena: Make MCDI logging support specific for Siena 2022-05-12 16:49:30 -07:00
mtd.c sfc/siena: Rename functions in efx headers to avoid conflicts with sfc 2022-05-10 15:38:14 -07:00
net_driver.h sfc: siena: eliminate xdp_rxq_info_valid using XDP base API 2025-07-01 17:02:12 -07:00
nic_common.h net: sfc: use ethtool string helpers 2024-11-09 09:10:37 -08:00
nic.c net: sfc: use ethtool string helpers 2024-11-09 09:10:37 -08:00
nic.h siena: Make SRIOV support specific for Siena 2022-05-12 16:49:29 -07:00
ptp.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ptp.h net: sfc: use ethtool string helpers 2024-11-09 09:10:37 -08:00
rx_common.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
rx_common.h sfc: siena: rip out rss-context dead code 2024-09-06 18:22:17 -07:00
rx.c sfc/siena: Rename peripheral functions to avoid conflicts with sfc 2022-05-10 15:38:15 -07:00
selftest.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
selftest.h sfc/siena: Rename peripheral functions to avoid conflicts with sfc 2022-05-10 15:38:15 -07:00
siena_sriov.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
siena_sriov.h sfc/siena: Reinstate SRIOV init/fini function calls 2022-05-12 16:49:30 -07:00
siena.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sriov.h siena: Make SRIOV support specific for Siena 2022-05-12 16:49:29 -07:00
tx_common.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tx_common.h sfc/siena: Rename RX/TX functions to avoid conflicts with sfc 2022-05-10 15:38:14 -07:00
tx.c sfc/siena: fix null pointer dereference in efx_hard_start_xmit 2022-09-20 11:21:28 -07:00
tx.h sfc/siena: Rename RX/TX functions to avoid conflicts with sfc 2022-05-10 15:38:14 -07:00
vfdi.h sfc: Copy shared files needed for Siena (part 2) 2022-05-10 15:38:14 -07:00
workarounds.h sfc/siena: Remove build references to missing functionality 2022-05-10 15:38:14 -07:00