Re: [PATCH v6 3/6] clk: spacemit: set up reset auxiliary devices

From: kernel test robot
Date: Thu May 08 2025 - 00:10:53 EST


Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on cb9c3aeae509b36afbdf46942a7a0a0dfc856ce7]

url: https://github.com/intel-lab-lkp/linux/commits/Alex-Elder/dt-bindings-soc-spacemit-define-spacemit-k1-ccu-resets/20250507-051019
base: cb9c3aeae509b36afbdf46942a7a0a0dfc856ce7
patch link: https://lore.kernel.org/r/20250506210638.2800228-4-elder%40riscstar.com
patch subject: [PATCH v6 3/6] clk: spacemit: set up reset auxiliary devices
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250508/202505081113.CwKtDYbs-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250508/202505081113.CwKtDYbs-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505081113.CwKtDYbs-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/clk/spacemit/ccu-k1.c:998:2: error: call to undeclared function 'kfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
998 | kfree(to_spacemit_ccu_adev(adev));
| ^
1 error generated.


vim +/kfree +998 drivers/clk/spacemit/ccu-k1.c

993
994 static void spacemit_cadev_release(struct device *dev)
995 {
996 struct auxiliary_device *adev = to_auxiliary_dev(dev);
997
> 998 kfree(to_spacemit_ccu_adev(adev));
999 }
1000

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