linux/drivers/clk
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
actions clk: actions: owl-divider: convert from divider_round_rate() to divider_determine_rate() 2026-01-22 10:48:25 -05:00
analogbits
aspeed Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
at91 clk: at91: Read "reg" with helper 2026-08-12 09:02:57 +03:00
axis Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
axs10x Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bcm clk: bcm: kona: Stop defaulting to parent index 0 on error 2026-06-29 13:21:40 -04:00
berlin Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cix clk: cix: add sky1 audss clock controller 2026-07-28 11:25:29 -04:00
davinci Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
eswin Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
hisilicon Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
imgtec Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
imx Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
ingenic Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
keystone This is all clk driver updates. Mostly new SoC support for 2026-06-25 12:48:57 -07:00
mediatek Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
meson Amlogic clock changes for v7.3 2026-08-11 22:05:41 -07:00
microchip clk: microchip: mpfs: fix regmap_update_bits() mask/val order 2026-08-19 23:11:09 -07:00
mmp clk: mmp: pxa1908-apbcp: Remove unneeded semicolon 2026-07-28 11:25:29 -04:00
mstar clk: mstar: msc313-cpupll: convert from round_rate() to determine_rate() 2025-09-08 09:41:30 -04:00
mvebu Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
mxs Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
nuvoton clk: nuvoton: ma35d1: fix ma35d1_clk_pll_determine_rate logic 2026-06-29 13:27:28 -04:00
nxp clk-lpc18xx-ccu: kzalloc + kcalloc to kzalloc_flex 2026-04-28 20:46:20 -07:00
pistachio Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pxa Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qcom Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
ralink Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
renesas Merge branches 'clk-pile' and 'clk-microchip' into clk-next 2026-08-20 16:51:47 -07:00
rockchip Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
samsung Merge branches 'clk-pile' and 'clk-microchip' into clk-next 2026-08-20 16:51:47 -07:00
sifive clk: sifive: sifive-prci: convert from round_rate() to determine_rate() 2025-09-08 09:41:28 -04:00
socfpga clk: socfpga: agilex: implement l3_main_free_clk 2026-05-25 21:46:56 -05:00
sophgo clk: sophgo: sg2042-clkgen: convert from divider_round_rate() to divider_determine_rate() 2026-01-22 10:48:26 -05:00
spacemit Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
spear clk: spear: fix resource leak in clk_register_vco_pll() 2026-04-01 23:46:18 +02:00
sprd clk: various improvements and fixes 2026-08-17 09:27:10 -07:00
st clk: st: clean-up simple provider misuse of the consumer API 2026-07-28 11:25:30 -04:00
starfive Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
stm32 clk: stm32: add missing bitfield.h header 2026-07-28 11:25:29 -04:00
sunxi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sunxi-ng clk: sunxi-ng: sun6i-rtc: add a733 support 2026-07-24 00:02:02 +08:00
tegra Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
tenstorrent clk: tenstorrent: Add Atlantis clock controller driver 2026-03-09 20:10:26 -07:00
thead clk: thead: th1520-ap: Support CPU frequency scaling 2026-01-14 17:26:47 -08:00
ti treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
ultrarisc clk: ultrarisc: Add DP1000 clock driver 2026-07-28 11:25:29 -04:00
uniphier
ux500 mfd: db8500-prcmu: Fold dbx500 header into db8500 2026-07-30 14:32:45 +01:00
versatile Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
visconti clk: visconti: Make sure clk_init_data is fully initialized 2026-08-19 22:57:32 -07:00
x86 clk/x86: pmc_atom: add kasprintf return value check 2026-07-28 11:25:29 -04:00
xilinx Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
zynq clk: zynq: pll: Fix kernel-doc after determine_rate() conversion 2026-08-17 09:28:13 -07:00
zynqmp Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
.kunitconfig clk: divider: Add KUnit tests for clk_divider_bestdiv() ULONG_MAX handling 2026-06-29 13:18:50 -04:00
clk_kunit_helpers.c
clk_parent_data_test.h
clk_test.c clk: test: convert constants to use HZ_PER_MHZ 2026-06-29 17:51:43 -04:00
clk-apple-nco.c clk: clk-apple-nco: Add "apple,t8103-nco" compatible 2026-01-15 18:50:26 -08:00
clk-asm9260.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-axi-clkgen.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
clk-axm5516.c clk: remove unneeded 'fast_io' parameter in regmap_config 2025-08-14 12:50:35 -07:00
clk-bd718x7.c clk: Use named initializers for platform_device_id arrays 2026-06-29 13:22:04 -04:00
clk-bm1880.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
clk-bulk.c clk: bulk: Use dev_err_probe() helper in of_clk_bulk_get() 2026-04-28 18:59:22 -07:00
clk-cdce706.c clk: various improvements and fixes 2026-08-17 09:27:10 -07:00
clk-cdce925.c clk: Use named initializers for arrays of i2c_device_data 2026-06-29 15:48:54 -04:00
clk-clps711x.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
clk-composite.c clk: composite: Export devm composite pdata helper 2026-07-28 11:25:29 -04:00
clk-conf.c clk: conf: Support assigned-clock-sscs 2026-06-29 13:16:17 -04:00
clk-cs2000-cp.c Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
clk-devres.c clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate() 2026-08-17 09:28:16 -07:00
clk-divider_test.c clk: divider: Fix clk_divider_bestdiv() returning min rate for large rate requests 2026-06-29 13:18:50 -04:00
clk-divider.c clk: divider: Fix clk_divider_bestdiv() returning min rate for large rate requests 2026-06-29 13:18:50 -04:00
clk-en7523.c clk: en7523: add support for dedicated PCIe PERSTOUT reset 2026-07-28 11:25:30 -04:00
clk-ep93xx.c Merge branch 'clk-determine-rate' into clk-next 2025-10-06 13:02:50 -05:00
clk-eyeq.c clk-eyeq: Add support for Mobileye EyeQ7H 2026-08-11 21:14:53 -07:00
clk-fixed-factor.c clk: fixed-factor: Export __clk_hw_register_fixed_factor() 2026-07-17 10:09:56 +02:00
clk-fixed-mmio.c
clk-fixed-rate_test.c
clk-fixed-rate_test.h
clk-fixed-rate.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-fractional-divider_test.c
clk-fractional-divider.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-fractional-divider.h
clk-fsl-flexspi.c
clk-fsl-sai.c clk: fsl-sai: Add MCLK generation support 2026-04-11 17:32:40 -07:00
clk-gate_test.c
clk-gate.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-gemini.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
clk-gpio.c
clk-hi655x.c
clk-highbank.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-hsdk-pll.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-k210.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-k230.c clk: canaan: Clear rate fields before reprogramming dividers 2026-06-29 13:08:40 -04:00
clk-lan966x.c clk: lan966x: remove unused dt-bindings include 2025-11-08 12:01:01 +02:00
clk-lmk04832.c Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
clk-lochnagar.c
clk-loongson1.c clk: loongson1: convert from divider_round_rate() to divider_determine_rate() 2026-01-22 10:48:25 -05:00
clk-loongson2.c clk: loongson2: Add clock definitions for Loongson-2K0300 SoC 2025-09-21 12:48:51 -07:00
clk-max9485.c clk: max9485: convert from round_rate() to determine_rate() 2025-09-08 09:41:27 -04:00
clk-max77686.c clk: Use named initializers for platform_device_id arrays 2026-06-29 13:22:04 -04:00
clk-milbeaut.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
clk-moxart.c clk: moxart: remove unused variables, fix refcount leak 2026-06-29 13:23:00 -04:00
clk-multiplier.c clk: multiplier: convert from round_rate() to determine_rate() 2025-09-08 09:41:27 -04:00
clk-mux.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-nomadik.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-npcm7xx.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
clk-npcm8xx.c
clk-nspire.c
clk-palmas.c clk: palmas: Use devm_of_clk_add_hw_provider() 2026-07-28 11:25:29 -04:00
clk-plldig.c
clk-pwm.c
clk-qoriq.c clk: qoriq: avoid format string warning 2026-03-23 17:16:23 -07:00
clk-renesas-pcie.c clk: various improvements and fixes 2026-08-17 09:27:10 -07:00
clk-rk808.c clk: rk808: fix OF node reference imbalance 2026-04-28 20:55:53 -07:00
clk-rp1.c clk: rp1: use clk_determine_rate_noop() 2026-06-29 17:52:18 -04:00
clk-rpmi.c clk: Add clock driver for the RISC-V RPMI clock service group 2025-09-25 13:16:48 -06:00
clk-s2mps11.c clk: Use named initializers for platform_device_id arrays 2026-06-29 13:22:04 -04:00
clk-scmi-oem.c clk: scmi: Add i.MX95 OEM extension support for SCMI clock driver 2026-06-29 13:16:17 -04:00
clk-scmi.c clk: scmi: Add i.MX95 OEM extension support for SCMI clock driver 2026-06-29 13:16:17 -04:00
clk-scmi.h clk: scmi: Add i.MX95 OEM extension support for SCMI clock driver 2026-06-29 13:16:17 -04:00
clk-scpi.c clk: scpi: use clk_determine_rate_noop() 2026-06-29 17:53:16 -04:00
clk-si514.c clk: Use named initializers for arrays of i2c_device_data 2026-06-29 15:48:54 -04:00
clk-si521xx.c clk: various improvements and fixes 2026-08-17 09:27:10 -07:00
clk-si544.c Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
clk-si570.c clk: Use named initializers for arrays of i2c_device_data 2026-06-29 15:48:54 -04:00
clk-si5341.c clk: si5341: Drop unused i2c driver_data 2026-06-29 15:48:54 -04:00
clk-si5351.c clk: Use named initializers for arrays of i2c_device_data 2026-06-29 15:48:54 -04:00
clk-si5351.h
clk-sp7021.c There's a bunch of patches here across drivers/clk/ to migrate drivers to use 2025-10-07 09:28:37 -07:00
clk-sparx5.c clk: sparx5: convert from round_rate() to determine_rate() 2025-09-08 09:41:28 -04:00
clk-stm32f4.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
clk-stm32h7.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-tps68470.c clk: tps68470: convert from round_rate() to determine_rate() 2025-09-08 09:41:29 -04:00
clk-twl.c
clk-twl6040.c
clk-versaclock3.c clk: versaclock3: convert from divider_round_rate() to divider_determine_rate() 2026-01-22 10:48:26 -05:00
clk-versaclock5.c clk: various improvements and fixes 2026-08-17 09:27:10 -07:00
clk-versaclock7.c clk: Use named initializers for arrays of i2c_device_data 2026-06-29 15:48:54 -04:00
clk-vt8500.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk-wm831x.c clk: wm831x: convert from round_rate() to determine_rate() 2025-09-08 09:41:29 -04:00
clk-xgene.c clk: xgene: Fix mapping leak in xgene_pllclk_init() 2026-03-23 17:19:27 -07:00
clk.c clk: add clk_determine_rate_noop() 2026-06-29 17:52:17 -04:00
clk.h
clkdev.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig Merge tag 'clk-misc-round-two-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile 2026-08-17 09:28:08 -07:00
kunit_clk_assigned_rates_multiple_consumer.dtso
kunit_clk_assigned_rates_multiple.dtso
kunit_clk_assigned_rates_null_consumer.dtso
kunit_clk_assigned_rates_null.dtso
kunit_clk_assigned_rates_one_consumer.dtso
kunit_clk_assigned_rates_one.dtso
kunit_clk_assigned_rates_u64_multiple_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_rates_u64_multiple.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_rates_u64_one_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_rates_u64_one.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_rates_without_consumer.dtso
kunit_clk_assigned_rates_without.dtso
kunit_clk_assigned_rates_zero_consumer.dtso
kunit_clk_assigned_rates_zero.dtso
kunit_clk_assigned_rates.h clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_multiple_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_multiple.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_null_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_null.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_one_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_one.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_without_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_without.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_zero_consumer.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_assigned_sscs_zero.dtso clk: Add KUnit tests for assigned-clock-sscs 2026-06-29 13:16:17 -04:00
kunit_clk_fixed_rate_test.dtso
kunit_clk_hw_get_dev_of_node.dtso
kunit_clk_parent_data_test.dtso
Makefile Merge branches 'clk-pile' and 'clk-microchip' into clk-next 2026-08-20 16:51:47 -07:00