Hi Oleksandr,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net/master]
[also build test ERROR on net-next/master ipvs/master linus/master v5.12-rc6
next-20210409]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Oleksandr-Mazur/net-core-devlink...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
864db232dc7036aa2de19749c3d5be0143b24f8f
config: arm64-randconfig-r033-20210409 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://github.com/0day-ci/linux/commit/7e224a25c3c6be88530f86f7f5dd9e668...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Oleksandr-Mazur/net-core-devlink-add-port_params_ops-for-devlink-port-parameters-altering/20210410-002443
git checkout 7e224a25c3c6be88530f86f7f5dd9e668d3b5620
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/net/netdevsim/dev.c:923:20: error: initializing
'struct devlink_port_param_ops *' with an expression of type 'const struct
devlink_port_param_ops *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
.port_param_ops = &nsim_dev_port_param_ops,
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +923 drivers/net/netdevsim/dev.c
909
910 static const struct devlink_ops nsim_dev_devlink_ops = {
911 .supported_flash_update_params = DEVLINK_SUPPORT_FLASH_UPDATE_COMPONENT |
912 DEVLINK_SUPPORT_FLASH_UPDATE_OVERWRITE_MASK,
913 .reload_actions = BIT(DEVLINK_RELOAD_ACTION_DRIVER_REINIT),
914 .reload_down = nsim_dev_reload_down,
915 .reload_up = nsim_dev_reload_up,
916 .info_get = nsim_dev_info_get,
917 .flash_update = nsim_dev_flash_update,
918 .trap_init = nsim_dev_devlink_trap_init,
919 .trap_action_set = nsim_dev_devlink_trap_action_set,
920 .trap_group_set = nsim_dev_devlink_trap_group_set,
921 .trap_policer_set = nsim_dev_devlink_trap_policer_set,
922 .trap_policer_counter_get = nsim_dev_devlink_trap_policer_counter_get,
923 .port_param_ops = &nsim_dev_port_param_ops,
924 };
925
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org