linux/sound/soc
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
..
adi
amd Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
apple ASoC: apple: mca: Add "apple,t8103-mca" compatible 2025-09-14 21:51:29 +02:00
atmel Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
au1x Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
bcm Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cirrus
codecs Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
dwc
fsl Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
generic Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
google
hisilicon
img ASoC: img: Imagination Technologies sound should depend on MIPS 2025-07-09 08:58:54 +01:00
intel Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
jz4740
kirkwood
loongson Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mediatek Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
meson Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mxs ASoC: mxs-saif: support usage with simple-audio-card 2025-10-16 14:25:41 +01:00
pxa Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qcom Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
renesas Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rockchip ASoC: rockchip: i2s-tdm: Use param rate if not provided by set_sysclk 2026-02-19 11:45:49 +00:00
samsung Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sdca Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sdw_utils ASoC: sdw_utils: Add quirk to ignore RT722 DMIC DAI 2026-01-26 21:22:47 +00:00
sof Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
sophgo ASoC: sophgo: fix 64-bit division build failure 2026-02-02 12:09:35 +00:00
spacemit ASoC: spacemit: fix incorrect error check for sspa clock 2025-11-07 19:49:45 +00:00
spear
sprd Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
starfive
sti
stm ASoC: stm32: sai: fix device and OF node leaks on 2025-11-26 22:56:01 +00:00
sunxi ASoC: sunxi: sun50i-dmic: Add missing check for devm_regmap_init_mmio 2026-01-27 12:46:04 +00:00
tegra ASoC: tegra: set reg_default_cb callback 2026-01-28 12:12:17 +00:00
ti ASoC: ti: davinci-mcasp: Add asynchronous mode support 2026-02-04 18:21:52 +00:00
uniphier ASoC: uniphier: use snd_kcontrol_chip() instead of snd_soc_kcontrol_component() 2025-10-20 02:44:30 +01:00
ux500 ASoC: ux500: mop500_ab8500: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:48 +00:00
xilinx Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xtensa
Kconfig ASoC: sophgo: add CV1800B I2S/TDM controller driver 2026-01-27 12:52:03 +00:00
Makefile ASoC: sophgo: add CV1800B I2S/TDM controller driver 2026-01-27 12:52:03 +00:00
soc-ac97.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-acpi.c
soc-card-test.c
soc-card.c
soc-component.c ASoC: soc-component: remove snd_soc_component_xxx() wrapper 2026-01-26 11:44:41 +00:00
soc-compress.c ALSA: compress_offload: Add 64-bit safe timestamp infrastructure 2025-09-08 09:33:24 +02:00
soc-core.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-dai.c ASoC: soc-core: check ops & auto_selectable_formats in snd_soc_dai_get_fmt() to prevent dereference error 2025-10-30 14:32:19 +00:00
soc-dapm.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
soc-devres.c
soc-generic-dmaengine-pcm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-jack.c ASoC: soc-jack: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:30 +00:00
soc-link.c
soc-ops-test.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-ops.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-pcm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-topology-test.c
soc-topology.c ASoC: soc-topology: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:32 +00:00
soc-usb.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-utils-test.c
soc-utils.c