[jpirko-mlxsw:jiri_devel_devlink_locking 5/42] drivers/net/wwan/t7xx/t7xx_port_devlink.c:465:42: error: 'DEVLINK_SUPPORT_FLASH_UPDATE_COMPONENT' undeclared here (not in a function); did you mean 'DEVLINK_ATTR_FLASH_UPDATE_COMPONENT'?

From: kernel test robot
Date: Sun Aug 21 2022 - 02:10:41 EST


tree: https://github.com/jpirko/linux_mlxsw jiri_devel_devlink_locking
head: e7096f2b22b32bd60568d91d12b562b3314bc8cc
commit: d8cf683bc939bf07c19efa964a98f10829e30df4 [5/42] net: devlink: extend info_get() version put to indicate a flash component
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220821/202208211443.W5A3Y2z1-lkp@xxxxxxxxx/config)
compiler: hppa-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/jpirko/linux_mlxsw/commit/d8cf683bc939bf07c19efa964a98f10829e30df4
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_devlink_locking
git checkout d8cf683bc939bf07c19efa964a98f10829e30df4
# 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=parisc SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/net/wwan/t7xx/t7xx_port_devlink.c:465:42: error: 'DEVLINK_SUPPORT_FLASH_UPDATE_COMPONENT' undeclared here (not in a function); did you mean 'DEVLINK_ATTR_FLASH_UPDATE_COMPONENT'?
465 | .supported_flash_update_params = DEVLINK_SUPPORT_FLASH_UPDATE_COMPONENT,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DEVLINK_ATTR_FLASH_UPDATE_COMPONENT


vim +465 drivers/net/wwan/t7xx/t7xx_port_devlink.c

87dae9e70bf7be2 M Chetan Kumar 2022-08-16 462
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 463 /* Call back function for devlink ops */
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 464 static const struct devlink_ops devlink_flash_ops = {
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 @465 .supported_flash_update_params = DEVLINK_SUPPORT_FLASH_UPDATE_COMPONENT,
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 466 .flash_update = t7xx_devlink_flash_update,
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 467 .reload_actions = BIT(DEVLINK_RELOAD_ACTION_DRIVER_REINIT) |
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 468 BIT(DEVLINK_RELOAD_ACTION_FW_ACTIVATE),
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 469 .reload_down = t7xx_devlink_reload_down,
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 470 .reload_up = t7xx_devlink_reload_up,
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 471 };
87dae9e70bf7be2 M Chetan Kumar 2022-08-16 472

:::::: The code at line 465 was first introduced by commit
:::::: 87dae9e70bf7be2bd8a3c561fe3ddf666eb8a7a4 net: wwan: t7xx: Enable devlink based fw flashing and coredump collection

:::::: TO: M Chetan Kumar <m.chetan.kumar@xxxxxxxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp