mirror of https://github.com/torvalds/linux.git
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>
|
||
|---|---|---|
| .. | ||
| broadcom | ||
| intel | ||
| mediatek | ||
| qcom | ||
| renesas | ||
| samsung | ||
| st | ||
| tegra | ||
| testing | ||
| ti-soc-thermal | ||
| Kconfig | ||
| Makefile | ||
| airoha_thermal.c | ||
| amlogic_thermal.c | ||
| armada_thermal.c | ||
| cpufreq_cooling.c | ||
| cpuidle_cooling.c | ||
| da9062-thermal.c | ||
| db8500_thermal.c | ||
| devfreq_cooling.c | ||
| dove_thermal.c | ||
| gov_bang_bang.c | ||
| gov_fair_share.c | ||
| gov_power_allocator.c | ||
| gov_step_wise.c | ||
| gov_user_space.c | ||
| hisi_thermal.c | ||
| imx8mm_thermal.c | ||
| imx91_thermal.c | ||
| imx_sc_thermal.c | ||
| imx_thermal.c | ||
| k3_bandgap.c | ||
| k3_j72xx_bandgap.c | ||
| khadas_mcu_fan.c | ||
| kirkwood_thermal.c | ||
| loongson2_thermal.c | ||
| max77620_thermal.c | ||
| pcie_cooling.c | ||
| qoriq_thermal.c | ||
| rockchip_thermal.c | ||
| spear_thermal.c | ||
| sprd_thermal.c | ||
| sun8i_thermal.c | ||
| thermal-generic-adc.c | ||
| thermal_core.c | ||
| thermal_core.h | ||
| thermal_debugfs.c | ||
| thermal_debugfs.h | ||
| thermal_helpers.c | ||
| thermal_hwmon.c | ||
| thermal_hwmon.h | ||
| thermal_mmio.c | ||
| thermal_netlink.c | ||
| thermal_netlink.h | ||
| thermal_of.c | ||
| thermal_sysfs.c | ||
| thermal_thresholds.c | ||
| thermal_thresholds.h | ||
| thermal_trace.h | ||
| thermal_trace_ipa.h | ||
| thermal_trip.c | ||
| uniphier_thermal.c | ||