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
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
axs10x
bcm clk: bcm: kona: Stop defaulting to parent index 0 on error 2026-06-29 13:21:40 -04:00
berlin
cix clk: cix: add sky1 audss clock controller 2026-07-28 11:25:29 -04:00
davinci
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
imx Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
ingenic
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
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
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
pxa
qcom Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
ralink
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
socfpga clk: socfpga: agilex: implement l3_main_free_clk 2026-05-25 21:46:56 -05:00
sophgo
spacemit Mostly the usual clk driver updates and new SoC additions plus non-critical 2026-08-26 11:14:30 -07:00
spear
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
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
thead
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
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
.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-asm9260.c
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-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
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
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
clk-fractional-divider_test.c
clk-fractional-divider.c
clk-fractional-divider.h
clk-fsl-flexspi.c
clk-fsl-sai.c
clk-gate_test.c
clk-gate.c
clk-gemini.c
clk-gpio.c
clk-hi655x.c
clk-highbank.c
clk-hsdk-pll.c
clk-k210.c
clk-k230.c clk: canaan: Clear rate fields before reprogramming dividers 2026-06-29 13:08:40 -04:00
clk-lan966x.c
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-loongson2.c
clk-max9485.c
clk-max77686.c clk: Use named initializers for platform_device_id arrays 2026-06-29 13:22:04 -04:00
clk-milbeaut.c
clk-moxart.c clk: moxart: remove unused variables, fix refcount leak 2026-06-29 13:23:00 -04:00
clk-multiplier.c
clk-mux.c
clk-nomadik.c
clk-npcm7xx.c
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-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-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
clk-sparx5.c
clk-stm32f4.c
clk-stm32h7.c
clk-tps68470.c
clk-twl.c
clk-twl6040.c
clk-versaclock3.c
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
clk-wm831x.c
clk-xgene.c
clk.c clk: add clk_determine_rate_noop() 2026-06-29 17:52:17 -04:00
clk.h
clkdev.c
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