[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220228101703.00002a76@Huawei.com>
Date: Mon, 28 Feb 2022 10:17:03 +0000
From: Jonathan Cameron <Jonathan.Cameron@...wei.com>
To: kernel test robot <lkp@...el.com>
CC: Liam Beguin <liambeguin@...il.com>, <kbuild-all@...ts.01.org>,
<linux-kernel@...r.kernel.org>, Peter Rosin <peda@...ntia.se>,
"Andy Shevchenko" <andy.shevchenko@...il.com>
Subject: Re: [jic23-iio:testing 231/235] iio-test-rescale.c:undefined
reference to `kunit_binary_assert_format'
On Mon, 28 Feb 2022 01:18:31 +0800
kernel test robot <lkp@...el.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
> head: 95df41f4ef19f5884269e6c62dc1d128a23c94cb
> commit: 683352565c0396077086ae0bec530d03e6b3c6df [231/235] iio: test: add basic tests for the iio-rescale driver
> config: m68k-randconfig-m031-20220227 (https://download.01.org/0day-ci/archive/20220228/202202280119.ftKfZpaB-lkp@intel.com/config)
> compiler: m68k-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?id=683352565c0396077086ae0bec530d03e6b3c6df
> git remote add jic23-iio https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
> git fetch --no-tags jic23-iio testing
> git checkout 683352565c0396077086ae0bec530d03e6b3c6df
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
>
> All errors (new ones prefixed by >>):
>
> m68k-linux-ld: drivers/iio/test/iio-test-rescale.o: in function `iio_rescale_test_offset':
> >> iio-test-rescale.c:(.text+0xaa): undefined reference to `kunit_binary_assert_format'
> >> m68k-linux-ld: iio-test-rescale.c:(.text+0x134): undefined reference to `kunit_binary_str_assert_format'
> m68k-linux-ld: drivers/iio/test/iio-test-rescale.o: in function `iio_rescale_test_scale':
> iio-test-rescale.c:(.text+0x35e): undefined reference to `kunit_binary_assert_format'
> m68k-linux-ld: iio-test-rescale.c:(.text+0x4a6): undefined reference to `kunit_binary_assert_format'
> m68k-linux-ld: iio-test-rescale.c:(.text+0x514): undefined reference to `kunit_binary_assert_format'
> m68k-linux-ld: iio-test-rescale.c:(.text+0x600): undefined reference to `kunit_binary_assert_format'
> m68k-linux-ld: iio-test-rescale.c:(.text+0x66e): undefined reference to `kunit_binary_assert_format'
> m68k-linux-ld: drivers/iio/test/iio-test-rescale.o: in function `iio_rescale_test_offset':
> >> iio-test-rescale.c:(.text+0x20): undefined reference to `kunit_kmalloc_array'
> m68k-linux-ld: iio-test-rescale.c:(.text+0xfa): undefined reference to `kunit_do_assertion'
> m68k-linux-ld: drivers/iio/test/iio-test-rescale.o: in function `iio_rescale_test_scale':
> iio-test-rescale.c:(.text+0x2e0): undefined reference to `kunit_kmalloc_array'
> m68k-linux-ld: iio-test-rescale.c:(.text+0x3ae): undefined reference to `kunit_do_assertion'
> m68k-linux-ld: net/core/sock.o: in function `sk_destruct':
> (.text+0x411a): undefined reference to `__sk_defer_free_flush'
Looks like we need depends on KUNIT=y
I'll make that change an push out again.
Thanks,
Jonathan
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists