Re: [PATCH v1] mfd: core: Support auxiliary device

From: kernel test robot
Date: Thu Apr 03 2025 - 11:11:35 EST


Hi Raag,

kernel test robot noticed the following build warnings:

[auto build test WARNING on driver-core/driver-core-testing]
[also build test WARNING on driver-core/driver-core-next driver-core/driver-core-linus lee-mfd/for-mfd-next lee-leds/for-leds-next linus/master v6.14 next-20250403]
[cannot apply to lee-mfd/for-mfd-fixes]
[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/Raag-Jadav/mfd-core-Support-auxiliary-device/20250403-190322
base: driver-core/driver-core-testing
patch link: https://lore.kernel.org/r/20250403110053.1274521-1-raag.jadav%40intel.com
patch subject: [PATCH v1] mfd: core: Support auxiliary device
config: arm-randconfig-002-20250403 (https://download.01.org/0day-ci/archive/20250403/202504032326.2F62UbVV-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250403/202504032326.2F62UbVV-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/202504032326.2F62UbVV-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/peci/cpu.c:4:
include/linux/auxiliary_bus.h: In function 'auxiliary_device_uninit':
include/linux/auxiliary_bus.h:246:3: error: implicit declaration of function 'kfree'; did you mean 'ida_free'? [-Werror=implicit-function-declaration]
kfree(auxdev->resource);
^~~~~
ida_free
In file included from drivers/peci/cpu.c:8:
include/linux/slab.h: At top level:
>> include/linux/slab.h:472:6: warning: conflicting types for 'kfree'
void kfree(const void *objp);
^~~~~
In file included from drivers/peci/cpu.c:4:
include/linux/auxiliary_bus.h:246:3: note: previous implicit declaration of 'kfree' was here
kfree(auxdev->resource);
^~~~~
cc1: some warnings being treated as errors


vim +/kfree +472 include/linux/slab.h

7bd230a26648ac Suren Baghdasaryan 2024-03-21 471
72d67229f522e3 Kees Cook 2021-11-05 @472 void kfree(const void *objp);
72d67229f522e3 Kees Cook 2021-11-05 473 void kfree_sensitive(const void *objp);
72d67229f522e3 Kees Cook 2021-11-05 474 size_t __ksize(const void *objp);
05a940656e1eb2 Kees Cook 2022-09-23 475

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