Re: [PATCH v2 3/8] clk: imx: add driver for imx8ulp's sim lpav

kernel test robot
2025-10-18T11:34:25Z

Hi Laurentiu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on pza/reset/next]
[also build test WARNING on abelvesa/clk/imx abelvesa/for-next linus/master v6.18-rc1 next-20251017]
[cannot apply to pza/imx-drm/next]
[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/Laurentiu-Mihalcea/reset-imx8mp-audiomix-Fix-bad-mask-values/20251017-192620
base: https://git.pengutronix.de/git/pza/linux reset/next
patch link: https://lore.kernel.org/r/20251017112025.11997-4-laurentiumihalcea111%40gmail.com
patch subject: [PATCH v2 3/8] clk: imx: add driver for imx8ulp's sim lpav
config: xtensa-randconfig-r132-20251018 (https://download.01.org/0day-ci/archive/20251018/202510181949.IazLEB6V-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251018/202510181949.IazLEB6V-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/202510181949.IazLEB6V-lkp@intel.com/

All warnings (new ones prefixed by >>):

drivers/clk/imx/clk-imx8ulp-sim-lpav.c: In function 'clk_imx8ulp_sim_lpav_aux_reset_release':
drivers/clk/imx/clk-imx8ulp-sim-lpav.c:52:9: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
52 | kfree(adev);
| ^~~~~
drivers/clk/imx/clk-imx8ulp-sim-lpav.c: In function 'clk_imx8ulp_sim_lpav_register_aux_reset':
drivers/clk/imx/clk-imx8ulp-sim-lpav.c:65:16: error: cleanup argument not a function
65 | struct auxiliary_device *adev __free(kfree) = NULL;
| ^~~~~~~~~~~~~~~~
drivers/clk/imx/clk-imx8ulp-sim-lpav.c:68:16: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
68 | adev = kzalloc(sizeof(*adev), GFP_KERNEL);
| ^~~~~~~
>> drivers/clk/imx/clk-imx8ulp-sim-lpav.c:68:14: warning: assignment to 'struct auxiliary_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
68 | adev = kzalloc(sizeof(*adev), GFP_KERNEL);
| ^
cc1: some warnings being treated as errors

vim +68 drivers/clk/imx/clk-imx8ulp-sim-lpav.c

62
63 static int clk_imx8ulp_sim_lpav_register_aux_reset(struct platform_device *pdev)
64 {
65 struct auxiliary_device *adev __free(kfree) = NULL;
66 int ret;
67
> 68 adev = kzalloc(sizeof(*adev), GFP_KERNEL);
69 if (!adev)
70 return -ENOMEM;
71
72 adev->name = "reset";
73 adev->dev.parent = &pdev->dev;
74 adev->dev.release = clk_imx8ulp_sim_lpav_aux_reset_release;
75
76 ret = auxiliary_device_init(adev);
77 if (ret) {
78 dev_err(&pdev->dev, "failed to initialize aux dev\n");
79 return ret;
80 }
81
82 ret = auxiliary_device_add(adev);
83 if (ret) {
84 auxiliary_device_uninit(adev);
85 dev_err(&pdev->dev, "failed to add aux dev\n");
86 return ret;
87 }
88
89 return devm_add_action_or_reset(&pdev->dev,
90 clk_imx8ulp_sim_lpav_unregister_aux_reset,
91 no_free_ptr(adev));
92 }
93 #else
94 static int clk_imx8ulp_sim_lpav_register_aux_reset(struct platform_device *pdev)
95 {
96 return 0;
97 }
98 #endif /* CONFIG_RESET_CONTROLLER */
99

--
0-DAY CI Kernel Test Service