Skip to contentSkip to conversation

clk: rockchip: rk3576: add missing slab.h include

PATCH Applied Heiko Stuebner 1 participant 3 messages May 15, 2025

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/2 clk: rockchip: rk3576: add missing slab.h include

The change for auxiliary GRFs introduced kzalloc usage into the rk3576 clock driver, but missed adding the header for its prototype. Add it now.

Fixes 70a114daf207 ("clk: rockchip: introduce auxiliary GRFs")
---
 drivers/clk/rockchip/clk-rk3576.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/rockchip/clk-rk3576.c +1 -0
index 71e77013f726..1f4547af5acf 100644
@@ -10,6 +10,7 @@
 #include <linux/platform_device.h>
 #include <linux/syscore_ops.h>
 #include <linux/mfd/syscon.h>
+#include <linux/slab.h>
 #include <dt-bindings/clock/rockchip,rk3576-cru.h>
 #include "clk.h"
 
Signature · 1 line
2.47.2
author maintainer
#1 lore raw

PATCH 2/2 clk: rockchip: rk3528: add slab.h header include

The newly added GRF types introduced kzalloc usage into the rk3528. At least for the similar rk3576 driver, the kernel-test-robot reported the missing prototype, which warranted adding a slab.h include.

While it did not complain about the rk3528, so the header might be included "accidentially" right now, add a real include to make sure we keep it included in the future.

Fixes 306d2f5ddaa7 ("clk: rockchip: rk3528: Add SD/SDIO tuning clocks in GRF region")
---
 drivers/clk/rockchip/clk-rk3528.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/rockchip/clk-rk3528.c +1 -0
index f5f10493abfb..a5ff64b93f8f 100644
@@ -12,6 +12,7 @@
 #include <linux/platform_device.h>
 #include <linux/mfd/syscon.h>
 #include <linux/minmax.h>
+#include <linux/slab.h>
 
 #include <dt-bindings/clock/rockchip,rk3528-cru.h>
 
Signature · 1 line
2.47.2
author maintainer Applied
#2 lore raw
In reply to Heiko Stuebner
Quoted 4 lines · Heiko Stuebner

The change for auxiliary GRFs introduced kzalloc usage into the rk3576 clock driver, but missed adding the header for its prototype. Add it now.

Applied, thanks!

[1/2] clk: rockchip: rk3576: add missing slab.h include

      commit: 92da5c3cba23ee4be2c043bb63a551c89c48de18
[2/2] clk: rockchip: rk3528: add slab.h header include
      commit: 276036283716b9135525b195675ea42801bde204

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>