Hi Tommaso, kernel test robot noticed the following build errors:
[auto build test ERROR on next-20260129] [also build test ERROR on linus/master v6.19-rc7] [cannot apply to geert-renesas-drivers/renesas-clk drm-misc/drm-misc-next geert-renesas-devel/next v6.19-rc7 v6.19-rc6 v6.19-rc5] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Tommaso-Merciai/clk-renesas-rzv2h-Add-PLLDSI-clk-mux-support/20260131-023642 base: next-20260129 patch link: https://lore.kernel.org/r/2cc58beb0c0fd96b07374e1e84e90e860c81fb95.1769797221.git.tommaso.merciai.xr%40bp.renesas.com patch subject: [PATCH v3 01/20] clk: renesas: rzv2h: Add PLLDSI clk mux support config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20260131/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260131/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/clk/renesas/rzv2h-cpg.c:796:10: error: invalid application of >> 'typeof' to bit-field 796 | width = fls(smux.width) - ffs(smux.width) + 1; | ^ arch/riscv/include/asm/bitops.h:154:8: note: expanded from macro 'fls' 154 | typeof(x) x_ = (x); \ | ^ 1 error generated. vim +/typeof +796 drivers/clk/renesas/rzv2h-cpg.c 783 784 static struct clk * __init 785 rzv2h_cpg_plldsi_smux_clk_register(const struct cpg_core_clk *core, 786 struct rzv2h_cpg_priv *priv) 787 { 788 struct rzv2h_plldsi_mux_clk *clk_hw_data; 789 struct clk_init_data init; 790 struct clk_hw *clk_hw; 791 struct smuxed smux; 792 u8 width; 793 int ret; 794 795 smux = core->cfg.smux; > 796 width = fls(smux.width) - ffs(smux.width) + 1; 797 798 if (width + smux.width > 16) { 799 dev_err(priv->dev, "mux value exceeds LOWORD field\n"); 800 return ERR_PTR(-EINVAL); 801 } 802 803 clk_hw_data = devm_kzalloc(priv->dev, sizeof(*clk_hw_data), GFP_KERNEL); 804 if (!clk_hw_data) 805 return ERR_PTR(-ENOMEM); 806 807 clk_hw_data->priv = priv; 808 809 init.name = core->name; 810 init.ops = &rzv2h_cpg_plldsi_smux_ops; 811 init.flags = core->flag; 812 init.parent_names = core->parent_names; 813 init.num_parents = core->num_parents; 814 815 clk_hw_data->mux.reg = priv->base + smux.offset; 816 817 clk_hw_data->mux.shift = smux.shift; 818 clk_hw_data->mux.mask = smux.width; 819 clk_hw_data->mux.flags = core->mux_flags; 820 clk_hw_data->mux.lock = &priv->rmw_lock; 821 822 clk_hw = &clk_hw_data->mux.hw; 823 clk_hw->init = &init; 824 825 ret = devm_clk_hw_register(priv->dev, clk_hw); 826 if (ret) 827 return ERR_PTR(ret); 828 829 return clk_hw->clk; 830 } 831 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
