From: kernel test robot <lkp@intel.com>
To: Daniele Briguglio <hello@superkali.me>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Nicolas Frattaroli <nicolas.frattaroli@collabora.com>,
Daniele Briguglio <hello@superkali.me>
Subject: Re: [PATCH 3/3] clk: rockchip: rk3588: add GATE_GRF clocks for I2S MCLK output to IO
Date: Thu, 19 Mar 2026 15:03:23 +0800 [thread overview]
Message-ID: <202603191419.MH6EuPga-lkp@intel.com> (raw)
In-Reply-To: <20260316-rk3588-mclk-gate-grf-v1-3-66fb9a246718@superkali.me>
Hi Daniele,
kernel test robot noticed the following build errors:
[auto build test ERROR on b84a0ebe421ca56995ff78b66307667b62b3a900]
url: https://github.com/intel-lab-lkp/linux/commits/Daniele-Briguglio/dt-bindings-clock-rockchip-rk3588-cru-add-I2S-MCLK-output-to-IO-clock-IDs/20260316-222240
base: b84a0ebe421ca56995ff78b66307667b62b3a900
patch link: https://lore.kernel.org/r/20260316-rk3588-mclk-gate-grf-v1-3-66fb9a246718%40superkali.me
patch subject: [PATCH 3/3] clk: rockchip: rk3588: add GATE_GRF clocks for I2S MCLK output to IO
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20260319/202603191419.MH6EuPga-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260319/202603191419.MH6EuPga-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603191419.MH6EuPga-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/rockchip/clk-rk3588.c: In function 'rk3588_clk_early_init':
>> drivers/clk/rockchip/clk-rk3588.c:2496:29: error: implicit declaration of function 'kzalloc_obj' [-Wimplicit-function-declaration]
2496 | sys_grf_e = kzalloc_obj(*sys_grf_e);
| ^~~~~~~~~~~
>> drivers/clk/rockchip/clk-rk3588.c:2496:27: error: assignment to 'struct rockchip_aux_grf *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
2496 | sys_grf_e = kzalloc_obj(*sys_grf_e);
| ^
vim +/kzalloc_obj +2496 drivers/clk/rockchip/clk-rk3588.c
2447
2448 static void __init rk3588_clk_early_init(struct device_node *np)
2449 {
2450 struct rockchip_clk_provider *ctx;
2451 struct rockchip_aux_grf *sys_grf_e;
2452 struct regmap *sys_grf;
2453 unsigned long clk_nr_clks, max_clk_id1, max_clk_id2;
2454 void __iomem *reg_base;
2455
2456 max_clk_id1 = rockchip_clk_find_max_clk_id(rk3588_clk_branches,
2457 ARRAY_SIZE(rk3588_clk_branches));
2458 max_clk_id2 = rockchip_clk_find_max_clk_id(rk3588_early_clk_branches,
2459 ARRAY_SIZE(rk3588_early_clk_branches));
2460 clk_nr_clks = max(max_clk_id1, max_clk_id2) + 1;
2461
2462 reg_base = of_iomap(np, 0);
2463 if (!reg_base) {
2464 pr_err("%s: could not map cru region\n", __func__);
2465 return;
2466 }
2467
2468 ctx = rockchip_clk_init_early(np, reg_base, clk_nr_clks);
2469 if (IS_ERR(ctx)) {
2470 pr_err("%s: rockchip clk init failed\n", __func__);
2471 iounmap(reg_base);
2472 return;
2473 }
2474 early_ctx = ctx;
2475
2476 rockchip_clk_register_plls(ctx, rk3588_pll_clks,
2477 ARRAY_SIZE(rk3588_pll_clks),
2478 RK3588_GRF_SOC_STATUS0);
2479
2480 rockchip_clk_register_armclk(ctx, ARMCLK_L, "armclk_l",
2481 mux_armclkl_p, ARRAY_SIZE(mux_armclkl_p),
2482 &rk3588_cpulclk_data, rk3588_cpulclk_rates,
2483 ARRAY_SIZE(rk3588_cpulclk_rates));
2484 rockchip_clk_register_armclk(ctx, ARMCLK_B01, "armclk_b01",
2485 mux_armclkb01_p, ARRAY_SIZE(mux_armclkb01_p),
2486 &rk3588_cpub0clk_data, rk3588_cpub0clk_rates,
2487 ARRAY_SIZE(rk3588_cpub0clk_rates));
2488 rockchip_clk_register_armclk(ctx, ARMCLK_B23, "armclk_b23",
2489 mux_armclkb23_p, ARRAY_SIZE(mux_armclkb23_p),
2490 &rk3588_cpub1clk_data, rk3588_cpub1clk_rates,
2491 ARRAY_SIZE(rk3588_cpub1clk_rates));
2492
2493 /* Register SYS_GRF for I2S MCLK output to IO gate clocks */
2494 sys_grf = syscon_regmap_lookup_by_compatible("rockchip,rk3588-sys-grf");
2495 if (!IS_ERR(sys_grf)) {
> 2496 sys_grf_e = kzalloc_obj(*sys_grf_e);
2497 if (sys_grf_e) {
2498 sys_grf_e->grf = sys_grf;
2499 sys_grf_e->type = grf_type_sys;
2500 hash_add(ctx->aux_grf_table, &sys_grf_e->node, grf_type_sys);
2501 }
2502 }
2503
2504 rockchip_clk_register_branches(ctx, rk3588_early_clk_branches,
2505 ARRAY_SIZE(rk3588_early_clk_branches));
2506
2507 rockchip_clk_of_add_provider(np, ctx);
2508 }
2509 CLK_OF_DECLARE_DRIVER(rk3588_cru, "rockchip,rk3588-cru", rk3588_clk_early_init);
2510
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Daniele Briguglio <hello@superkali.me>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Nicolas Frattaroli <nicolas.frattaroli@collabora.com>,
Daniele Briguglio <hello@superkali.me>
Subject: Re: [PATCH 3/3] clk: rockchip: rk3588: add GATE_GRF clocks for I2S MCLK output to IO
Date: Thu, 19 Mar 2026 15:03:23 +0800 [thread overview]
Message-ID: <202603191419.MH6EuPga-lkp@intel.com> (raw)
In-Reply-To: <20260316-rk3588-mclk-gate-grf-v1-3-66fb9a246718@superkali.me>
Hi Daniele,
kernel test robot noticed the following build errors:
[auto build test ERROR on b84a0ebe421ca56995ff78b66307667b62b3a900]
url: https://github.com/intel-lab-lkp/linux/commits/Daniele-Briguglio/dt-bindings-clock-rockchip-rk3588-cru-add-I2S-MCLK-output-to-IO-clock-IDs/20260316-222240
base: b84a0ebe421ca56995ff78b66307667b62b3a900
patch link: https://lore.kernel.org/r/20260316-rk3588-mclk-gate-grf-v1-3-66fb9a246718%40superkali.me
patch subject: [PATCH 3/3] clk: rockchip: rk3588: add GATE_GRF clocks for I2S MCLK output to IO
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20260319/202603191419.MH6EuPga-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260319/202603191419.MH6EuPga-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603191419.MH6EuPga-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/rockchip/clk-rk3588.c: In function 'rk3588_clk_early_init':
>> drivers/clk/rockchip/clk-rk3588.c:2496:29: error: implicit declaration of function 'kzalloc_obj' [-Wimplicit-function-declaration]
2496 | sys_grf_e = kzalloc_obj(*sys_grf_e);
| ^~~~~~~~~~~
>> drivers/clk/rockchip/clk-rk3588.c:2496:27: error: assignment to 'struct rockchip_aux_grf *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
2496 | sys_grf_e = kzalloc_obj(*sys_grf_e);
| ^
vim +/kzalloc_obj +2496 drivers/clk/rockchip/clk-rk3588.c
2447
2448 static void __init rk3588_clk_early_init(struct device_node *np)
2449 {
2450 struct rockchip_clk_provider *ctx;
2451 struct rockchip_aux_grf *sys_grf_e;
2452 struct regmap *sys_grf;
2453 unsigned long clk_nr_clks, max_clk_id1, max_clk_id2;
2454 void __iomem *reg_base;
2455
2456 max_clk_id1 = rockchip_clk_find_max_clk_id(rk3588_clk_branches,
2457 ARRAY_SIZE(rk3588_clk_branches));
2458 max_clk_id2 = rockchip_clk_find_max_clk_id(rk3588_early_clk_branches,
2459 ARRAY_SIZE(rk3588_early_clk_branches));
2460 clk_nr_clks = max(max_clk_id1, max_clk_id2) + 1;
2461
2462 reg_base = of_iomap(np, 0);
2463 if (!reg_base) {
2464 pr_err("%s: could not map cru region\n", __func__);
2465 return;
2466 }
2467
2468 ctx = rockchip_clk_init_early(np, reg_base, clk_nr_clks);
2469 if (IS_ERR(ctx)) {
2470 pr_err("%s: rockchip clk init failed\n", __func__);
2471 iounmap(reg_base);
2472 return;
2473 }
2474 early_ctx = ctx;
2475
2476 rockchip_clk_register_plls(ctx, rk3588_pll_clks,
2477 ARRAY_SIZE(rk3588_pll_clks),
2478 RK3588_GRF_SOC_STATUS0);
2479
2480 rockchip_clk_register_armclk(ctx, ARMCLK_L, "armclk_l",
2481 mux_armclkl_p, ARRAY_SIZE(mux_armclkl_p),
2482 &rk3588_cpulclk_data, rk3588_cpulclk_rates,
2483 ARRAY_SIZE(rk3588_cpulclk_rates));
2484 rockchip_clk_register_armclk(ctx, ARMCLK_B01, "armclk_b01",
2485 mux_armclkb01_p, ARRAY_SIZE(mux_armclkb01_p),
2486 &rk3588_cpub0clk_data, rk3588_cpub0clk_rates,
2487 ARRAY_SIZE(rk3588_cpub0clk_rates));
2488 rockchip_clk_register_armclk(ctx, ARMCLK_B23, "armclk_b23",
2489 mux_armclkb23_p, ARRAY_SIZE(mux_armclkb23_p),
2490 &rk3588_cpub1clk_data, rk3588_cpub1clk_rates,
2491 ARRAY_SIZE(rk3588_cpub1clk_rates));
2492
2493 /* Register SYS_GRF for I2S MCLK output to IO gate clocks */
2494 sys_grf = syscon_regmap_lookup_by_compatible("rockchip,rk3588-sys-grf");
2495 if (!IS_ERR(sys_grf)) {
> 2496 sys_grf_e = kzalloc_obj(*sys_grf_e);
2497 if (sys_grf_e) {
2498 sys_grf_e->grf = sys_grf;
2499 sys_grf_e->type = grf_type_sys;
2500 hash_add(ctx->aux_grf_table, &sys_grf_e->node, grf_type_sys);
2501 }
2502 }
2503
2504 rockchip_clk_register_branches(ctx, rk3588_early_clk_branches,
2505 ARRAY_SIZE(rk3588_early_clk_branches));
2506
2507 rockchip_clk_of_add_provider(np, ctx);
2508 }
2509 CLK_OF_DECLARE_DRIVER(rk3588_cru, "rockchip,rk3588-cru", rk3588_clk_early_init);
2510
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-03-19 7:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 13:06 [PATCH 0/3] clk: rockchip: rk3588: add I2S MCLK output gate clocks Daniele Briguglio
2026-03-16 13:06 ` Daniele Briguglio
2026-03-16 13:06 ` [PATCH 1/3] dt-bindings: clock: rockchip,rk3588-cru: add I2S MCLK output to IO clock IDs Daniele Briguglio
2026-03-16 13:06 ` Daniele Briguglio
2026-03-17 7:40 ` Krzysztof Kozlowski
2026-03-17 7:40 ` Krzysztof Kozlowski
2026-03-16 13:06 ` [PATCH 2/3] clk: rockchip: allow grf_type_sys lookup in aux_grf_table Daniele Briguglio
2026-03-16 13:06 ` Daniele Briguglio
2026-03-18 12:35 ` Nicolas Frattaroli
2026-03-18 12:35 ` Nicolas Frattaroli
2026-03-16 13:06 ` [PATCH 3/3] clk: rockchip: rk3588: add GATE_GRF clocks for I2S MCLK output to IO Daniele Briguglio
2026-03-16 13:06 ` Daniele Briguglio
2026-03-19 7:03 ` kernel test robot [this message]
2026-03-19 7:03 ` kernel test robot
2026-03-18 0:44 ` [PATCH 0/3] clk: rockchip: rk3588: add I2S MCLK output gate clocks Ricardo Pardini
2026-03-18 0:44 ` Ricardo Pardini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603191419.MH6EuPga-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=hello@superkali.me \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=nicolas.frattaroli@collabora.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.