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>
|
||
|---|---|---|
| .. | ||
| 8250 | ||
| jsm | ||
| 21285.c | ||
| Kconfig | ||
| Makefile | ||
| altera_jtaguart.c | ||
| altera_uart.c | ||
| amba-pl010.c | ||
| amba-pl011.c | ||
| apbuart.c | ||
| apbuart.h | ||
| ar933x_uart.c | ||
| arc_uart.c | ||
| atmel_serial.c | ||
| atmel_serial.h | ||
| bcm63xx_uart.c | ||
| clps711x.c | ||
| cpm_uart.c | ||
| cpm_uart.h | ||
| digicolor-usart.c | ||
| dz.c | ||
| dz.h | ||
| earlycon-riscv-sbi.c | ||
| earlycon-semihost.c | ||
| earlycon.c | ||
| esp32_acm.c | ||
| esp32_uart.c | ||
| fsl_linflexuart.c | ||
| fsl_lpuart.c | ||
| icom.c | ||
| imx.c | ||
| imx_earlycon.c | ||
| ip22zilog.c | ||
| ip22zilog.h | ||
| kgdboc.c | ||
| lantiq.c | ||
| liteuart.c | ||
| lpc32xx_hs.c | ||
| ma35d1_serial.c | ||
| max310x.c | ||
| max3100.c | ||
| mcf.c | ||
| men_z135_uart.c | ||
| meson_uart.c | ||
| milbeaut_usio.c | ||
| mpc52xx_uart.c | ||
| mps2-uart.c | ||
| msm_serial.c | ||
| mux.c | ||
| mvebu-uart.c | ||
| mxs-auart.c | ||
| omap-serial.c | ||
| owl-uart.c | ||
| pch_uart.c | ||
| pic32_uart.c | ||
| pmac_zilog.c | ||
| pmac_zilog.h | ||
| pxa.c | ||
| qcom_geni_serial.c | ||
| rda-uart.c | ||
| rp2.c | ||
| rsci.c | ||
| rsci.h | ||
| sa1100.c | ||
| samsung_tty.c | ||
| sb1250-duart.c | ||
| sc16is7xx.c | ||
| sc16is7xx.h | ||
| sc16is7xx_i2c.c | ||
| sc16is7xx_spi.c | ||
| sccnxp.c | ||
| serial-tegra.c | ||
| serial_base.h | ||
| serial_base_bus.c | ||
| serial_core.c | ||
| serial_ctrl.c | ||
| serial_mctrl_gpio.c | ||
| serial_mctrl_gpio.h | ||
| serial_port.c | ||
| serial_txx9.c | ||
| sh-sci-common.h | ||
| sh-sci.c | ||
| sifive.c | ||
| sprd_serial.c | ||
| st-asc.c | ||
| stm32-usart.c | ||
| stm32-usart.h | ||
| suncore.c | ||
| sunhv.c | ||
| sunplus-uart.c | ||
| sunsab.c | ||
| sunsab.h | ||
| sunsu.c | ||
| sunzilog.c | ||
| sunzilog.h | ||
| tegra-tcu.c | ||
| tegra-utc.c | ||
| timbuart.c | ||
| timbuart.h | ||
| uartlite.c | ||
| ucc_uart.c | ||
| vt8500_serial.c | ||
| xilinx_uartps.c | ||
| zs.c | ||
| zs.h | ||