linux/arch/powerpc/platforms/pseries
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
..
cc_platform.c powerpc/pseries/svm: Add a powerpc version of cc_platform_has() 2021-10-04 11:46:33 +02:00
cmm.c mm: rename CONFIG_BALLOON_COMPACTION to CONFIG_BALLOON_MIGRATION 2026-01-31 14:22:36 -08:00
dlpar.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dtl.c powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-10-29 23:01:36 +11:00
eeh_pseries.c powerpc/pseries/eeh: Fix get PE state translation 2025-01-21 10:43:08 +05:30
event_sources.c powerpc/pseries: Add __init attribute to eligible functions 2021-12-23 22:33:15 +11:00
firmware.c powerpc/pseries: Add FW_FEATURE_PLPKS feature flag 2023-04-20 13:21:46 +10:00
hotplug-cpu.c powerpc: Split systemcfg struct definitions out from vdso 2024-11-02 12:37:36 +01:00
hotplug-memory.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
htmdump.c powerpc/pseries/htmdump: Include header file to get is_kvm_guest() definition 2025-05-12 10:22:11 +05:30
hvCall.S powerpc/pseries: Remove unused r0 in the hcall tracing code 2023-09-30 22:52:18 +10:00
hvCall_inst.c powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static 2021-04-14 23:04:17 +10:00
hvconsole.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvcserver.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
ibmebus.c powerpc: Convert to physical address DMA mapping 2025-10-29 10:27:30 +01:00
io_event_irq.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig mm: rename CONFIG_MEMORY_BALLOON -> CONFIG_BALLOON 2026-01-31 14:22:36 -08:00
kexec.c powerpc/pseries: Fix scv instruction crash with kexec 2024-06-28 22:05:44 +10:00
lpar.c powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-10-29 23:01:36 +11:00
lparcfg.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile powerpc/pseries: move the PLPKS config inside its own sysfs directory 2026-01-30 09:27:26 +05:30
mobility.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
msi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
nvram.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
of_helpers.c powerpc/pseries: Fix of_read_drc_info_cell() to point at next record 2020-03-25 12:06:43 +11:00
of_helpers.h
papr-hvpipe.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-hvpipe.h powerpc/pseries: HVPIPE changes to support migration 2025-09-15 13:38:40 +05:30
papr-indices.c powerpc/pseries: Add ibm,get-dynamic-sensor-state RTAS call support 2025-04-17 11:42:29 +05:30
papr-phy-attest.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-platform-dump.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-rtas-common.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-rtas-common.h powerpc/pseries: Define common functions for RTAS sequence calls 2025-04-17 11:42:29 +05:30
papr-sysparm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
papr-vpd.c powerpc/pseries: Define common functions for RTAS sequence calls 2025-04-17 11:42:29 +05:30
papr_platform_attributes.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
papr_scm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci_dlpar.c drivers/base/node: fold register_node() into register_one_node() 2025-11-16 17:28:02 -08:00
plpks-secvar.c powerpc/pseries: move the PLPKS config inside its own sysfs directory 2026-01-30 09:27:26 +05:30
plpks-sysfs.c pseries/plpks: expose PowerVM wrapping features via the sysfs 2026-01-30 09:27:26 +05:30
plpks.c powerpc/pseries: plpks: export plpks_wrapping_is_supported 2026-02-11 07:53:54 +05:30
plpks_sed_ops.c powerpc/pseries: PLPKS SED Opal keystore support 2023-10-17 09:10:06 -06:00
pmem.c powerpc/pseries: Use correct data types from pseries_hp_errorlog struct 2024-08-30 21:31:25 +10:00
power.c powerpc: declare unmodified attribute_group usages const 2022-03-08 22:15:32 +11:00
pseries.h powerpc/pseries: Fix scv instruction crash with kexec 2024-06-28 22:05:44 +10:00
pseries_energy.c powerpc/pseries: move to use bus_get_dev_root() 2023-03-17 15:29:38 +01:00
ras.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
reconfig.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rng.c powerpc/pseries: wire up rng during setup_arch() 2022-06-18 10:19:10 +10:00
rtas-fadump.c powerpc/fadump: setup additional parameters for dump capture kernel 2024-05-10 16:36:10 +10:00
rtas-fadump.h powerpc/fadump: setup additional parameters for dump capture kernel 2024-05-10 16:36:10 +10:00
rtas-work-area.c powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc 2023-11-07 13:13:44 +11:00
setup.c sched: Move clock related paravirt code to kernel/sched 2026-01-12 15:39:14 +01:00
smp.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
suspend.c powerpc: pseries: make suspend_subsys const 2025-10-22 07:59:57 +02:00
svm.c powerpc/machdep: Remove duplicated include in svm.c 2024-11-27 10:38:17 +05:30
vas-sysfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vas.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vas.h powerpc/pseries/vas: Migration suspend waits for no in-progress open windows 2023-12-13 22:01:47 +11:00
vio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vphn.c powerpc/pseries: Move VPHN constants into vphn.h 2023-08-24 22:33:16 +10:00