Re: [PATCH v1 1/1] iio: core: Split debugfs routines
From: kernel test robot
Date: Tue Nov 24 2026 - 11:30:08 EST
Hi Andy,
kernel test robot noticed the following build errors:
[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v7.4-rc4 next-20261123]
[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/Andy-Shevchenko/iio-core-Split-debugfs-routines/20261124-104410
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20261124094502.557175-1-andriy.shevchenko%40linux.intel.com
patch subject: [PATCH v1 1/1] iio: core: Split debugfs routines
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261125/20261125002412.n7KFlU4e-lkp@xxxxxxxxx/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/20261125/20261125002412.n7KFlU4e-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/20261125002412.n7KFlU4e-lkp@xxxxxxxxx/
All error/warnings (new ones prefixed by >>):
>> drivers/iio/industrialio-debugfs.c:138:13: error: static declaration of 'iio_device_unregister_debugfs' follows non-static declaration
138 | static void iio_device_unregister_debugfs(struct iio_dev *indio_dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/iio/industrialio-debugfs.c:20:
drivers/iio/iio_core.h:23:6: note: previous declaration of 'iio_device_unregister_debugfs' with type 'void(struct iio_dev *)'
23 | void iio_device_unregister_debugfs(struct iio_dev *indio_dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/industrialio-debugfs.c:145:13: error: static declaration of 'iio_device_register_debugfs' follows non-static declaration
145 | static void iio_device_register_debugfs(struct iio_dev *indio_dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/iio_core.h:24:6: note: previous declaration of 'iio_device_register_debugfs' with type 'void(struct iio_dev *)'
24 | void iio_device_register_debugfs(struct iio_dev *indio_dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/industrialio-debugfs.c:145:13: warning: 'iio_device_register_debugfs' defined but not used [-Wunused-function]
145 | static void iio_device_register_debugfs(struct iio_dev *indio_dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/industrialio-debugfs.c:138:13: warning: 'iio_device_unregister_debugfs' defined but not used [-Wunused-function]
138 | static void iio_device_unregister_debugfs(struct iio_dev *indio_dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/iio_device_unregister_debugfs +138 drivers/iio/industrialio-debugfs.c
137
> 138 static void iio_device_unregister_debugfs(struct iio_dev *indio_dev)
139 {
140 struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev);
141
142 debugfs_remove_recursive(iio_dev_opaque->debugfs_dentry);
143 }
144
> 145 static void iio_device_register_debugfs(struct iio_dev *indio_dev)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki