Re: [PATCH v1 2/9] kunit: Add speed attribute

From: kernel test robot
Date: Fri Jul 21 2023 - 00:32:09 EST


Hi Rae,

kernel test robot noticed the following build errors:

[auto build test ERROR on 64bd4641310c41a1ecf07c13c67bc0ed61045dfd]

url: https://github.com/intel-lab-lkp/linux/commits/Rae-Moar/kunit-Add-test-attributes-API-structure/20230720-062623
base: 64bd4641310c41a1ecf07c13c67bc0ed61045dfd
patch link: https://lore.kernel.org/r/20230719222338.259684-3-rmoar%40google.com
patch subject: [PATCH v1 2/9] kunit: Add speed attribute
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230721/202307211202.hZ3gtW5S-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230721/202307211202.hZ3gtW5S-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/202307211202.hZ3gtW5S-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> lib/kunit/attributes.c:89:47: error: initializer element is not a compile-time constant
static struct kunit_attr kunit_attr_list[] = {speed_attr};
^~~~~~~~~~
1 error generated.


vim +89 lib/kunit/attributes.c

88
> 89 static struct kunit_attr kunit_attr_list[] = {speed_attr};
90

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