All of lore.kernel.org
 help / color / mirror / Atom feed
* [geert-renesas-drivers:renesas-clk-for-v7.4 16/16] drivers/clk/renesas/r9a09g077-cpg.c:966:16: error: cleanup argument not a function
@ 2026-09-10 14:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-10 14:55 UTC (permalink / raw)
  To: Lad Prabhakar; +Cc: oe-kbuild-all, linux-renesas-soc, Geert Uytterhoeven

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk-for-v7.4
head:   810b8b6c4e02c40991c29491cec09ebdaf5ec6d0
commit: 810b8b6c4e02c40991c29491cec09ebdaf5ec6d0 [16/16] clk: renesas: r9a09g077: Register SYSC regmap
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20260910/202609102224.XUOQcfuF-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260910/202609102224.XUOQcfuF-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/202609102224.XUOQcfuF-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/clk/renesas/r9a09g077-cpg.c: In function 'r9a09g077_post_init':
>> drivers/clk/renesas/r9a09g077-cpg.c:966:16: error: cleanup argument not a function
     966 |         struct regmap_config *regmap_cfg __free(kfree) = kzalloc_obj(*regmap_cfg);
         |                ^~~~~~~~~~~~~
>> drivers/clk/renesas/r9a09g077-cpg.c:966:58: error: implicit declaration of function 'kzalloc_obj' [-Wimplicit-function-declaration]
     966 |         struct regmap_config *regmap_cfg __free(kfree) = kzalloc_obj(*regmap_cfg);
         |                                                          ^~~~~~~~~~~
>> drivers/clk/renesas/r9a09g077-cpg.c:966:58: error: initialization of 'struct regmap_config *' from 'int' makes pointer from integer without a cast [-Wint-conversion]


vim +966 drivers/clk/renesas/r9a09g077-cpg.c

   963	
   964	static int r9a09g077_post_init(struct device *dev, struct cpg_mssr_pub *pub)
   965	{
 > 966		struct regmap_config *regmap_cfg __free(kfree) = kzalloc_obj(*regmap_cfg);
   967		struct r9a09g077_sysc_reg *sysc_reg;
   968		struct regmap *regmap;
   969		struct resource res;
   970		int ret;
   971	
   972		/*
   973		 * Return early if the SYSC sizes are not as expected, for backwards
   974		 * compatibility with older device trees that only expose the 64 KiB
   975		 * CPG register window.
   976		 */
   977		ret = of_address_to_resource(dev->of_node, 0, &res);
   978		if (ret)
   979			return ret;
   980		if (resource_size(&res) != RZT2H_CPG_REG_SIZE)
   981			return 0;
   982	
   983		ret = of_address_to_resource(dev->of_node, 1, &res);
   984		if (ret)
   985			return ret;
   986		if (resource_size(&res) != RZT2H_CPG_REG_SIZE)
   987			return 0;
   988	
   989		if (!regmap_cfg)
   990			return -ENOMEM;
   991	
   992		sysc_reg = devm_kzalloc(dev, sizeof(*sysc_reg), GFP_KERNEL);
   993		if (!sysc_reg)
   994			return -ENOMEM;
   995	
   996		/* Only allow access in the SYSC regions */
   997		sysc_reg->base[0] = pub->base0 + RZT2H_SYSC_OFFSET;
   998		sysc_reg->base[1] = pub->base1 + RZT2H_SYSC_OFFSET;
   999	
  1000		regmap_cfg->name = "rzt2h_sysc";
  1001		regmap_cfg->reg_bits = 32;
  1002		regmap_cfg->reg_stride = 4;
  1003		regmap_cfg->val_bits = 32;
  1004		regmap_cfg->fast_io = true;
  1005		regmap_cfg->max_register = RZT2H_SYSC_SIZE - 1;
  1006		regmap_cfg->readable_reg = r9a09g077_writeable_readable_sysc;
  1007		regmap_cfg->writeable_reg = r9a09g077_writeable_readable_sysc;
  1008	
  1009		regmap = devm_regmap_init(dev, &r9a09g077_sys_regmap_bus, sysc_reg, regmap_cfg);
  1010		if (IS_ERR(regmap))
  1011			return PTR_ERR(regmap);
  1012	
  1013		return of_syscon_register_regmap(dev->of_node, regmap);
  1014	}
  1015	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-10 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 14:55 [geert-renesas-drivers:renesas-clk-for-v7.4 16/16] drivers/clk/renesas/r9a09g077-cpg.c:966:16: error: cleanup argument not a function kernel test robot

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.