Re: [PATCH net-next v4 3/3] mctp i3c: MCTP I3C driver

kernel test robot
2023-10-07T05:51:00Z

Hi Matt,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Matt-Johnston/dt-bindings-i3c-Add-mctp-controller-property/20231004-111533
base: net-next/main
patch link: https://lore.kernel.org/r/20231004031316.725107-4-matt%40codeconstruct.com.au
patch subject: [PATCH net-next v4 3/3] mctp i3c: MCTP I3C driver
config: x86_64-buildonly-randconfig-005-20231007 (https://download.01.org/0day-ci/archive/20231007/202310071339.iWeOdKQk-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231007/202310071339.iWeOdKQk-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310071339.iWeOdKQk-lkp@intel.com/

All errors (new ones prefixed by >>):

In file included from drivers/net/mctp/mctp-i3c.c:13:0:
>> drivers/net/mctp/mctp-i3c.c:710:12: error: initializer element is not constant
I3C_CLASS(I3C_DCR_MCTP, NULL),
^
include/linux/i3c/device.h:166:10: note: in definition of macro 'I3C_CLASS'
.dcr = _dcr, \
^~~~
drivers/net/mctp/mctp-i3c.c:710:12: note: (near initialization for 'mctp_i3c_ids[0].dcr')
I3C_CLASS(I3C_DCR_MCTP, NULL),
^
include/linux/i3c/device.h:166:10: note: in definition of macro 'I3C_CLASS'
.dcr = _dcr, \
^~~~

vim +710 drivers/net/mctp/mctp-i3c.c

708
709 static const struct i3c_device_id mctp_i3c_ids[] = {
> 710 I3C_CLASS(I3C_DCR_MCTP, NULL),
711 { 0 },
712 };
713

--
0-DAY CI Kernel Test Service