Re: [PATCH v4 5/8] iio: test: test gain-time-scale helpers

From: kernel test robot
Date: Fri Mar 17 2023 - 13:17:25 EST


Hi Matti,

I love your patch! Yet something to improve:

[auto build test ERROR on eeac8ede17557680855031c6f305ece2378af326]

url: https://github.com/intel-lab-lkp/linux/commits/Matti-Vaittinen/drm-tests-helpers-rename-generic-helpers/20230317-224949
base: eeac8ede17557680855031c6f305ece2378af326
patch link: https://lore.kernel.org/r/31cf5765078b2d808d9e66eb623cde70ee6478ac.1679062529.git.mazziesaccount%40gmail.com
patch subject: [PATCH v4 5/8] iio: test: test gain-time-scale helpers
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230318/202303180046.bcS0xv8j-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/37a2c62820ca249a8d3ab9f1b80eaa71e0d5749b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Matti-Vaittinen/drm-tests-helpers-rename-generic-helpers/20230317-224949
git checkout 37a2c62820ca249a8d3ab9f1b80eaa71e0d5749b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/base/test/ drivers/iio/test/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202303180046.bcS0xv8j-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/test/iio-test-gts.c:7:10: fatal error: kunit/platform_device.h: No such file or directory
7 | #include <kunit/platform_device.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
--
>> drivers/base/test/test_kunit_device.c:11:10: fatal error: kunit/platform_device.h: No such file or directory
11 | #include <kunit/platform_device.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.


vim +7 drivers/iio/test/iio-test-gts.c

> 7 #include <kunit/platform_device.h>
8 #include <kunit/test.h>
9 #include <linux/iio/iio-gts-helper.h>
10 #include <linux/iio/types.h>
11

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