Hi Oleksandr,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net/master]
[also build test WARNING 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: i386-randconfig-s031-20210409 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
#
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
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/net/netdevsim/dev.c:923:28: sparse: sparse: incorrect
type in initializer (different modifiers) @@ expected struct devlink_port_param_ops
*port_param_ops @@ got struct devlink_port_param_ops const * @@
drivers/net/netdevsim/dev.c:923:28: sparse: expected struct devlink_port_param_ops
*port_param_ops
drivers/net/netdevsim/dev.c:923:28: sparse: got struct devlink_port_param_ops const
*
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