Skip to contentSkip to conversation

drivers/net/ethernet/microsoft/mana/mana_en.c:804:10: error: 'const struct net_device_ops' has no member named 'net_shaper_ops'

PATCH kernel test robot 1 participant 1 message Jun 22, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   5d4809e25903ab8e74034c1f23c787fd26d52934
commit: 75cabb46935b6de8e2bdfde563e460ac41cfff12 [3909/4336] net: mana: Add support for net_shaper_ops
config: x86_64-randconfig-161-20250614 (https://download.01.org/0day-ci/archive/20250623/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250623/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/microsoft/mana/mana_en.c:804:10: error: 'const struct net_device_ops' has no member named 'net_shaper_ops'
     804 |         .net_shaper_ops         = &mana_shaper_ops,
         |          ^~~~~~~~~~~~~~
>> drivers/net/ethernet/microsoft/mana/mana_en.c:804:35: error: initialization of 'int (*)(struct net_device *, struct neigh_parms *)' from incompatible pointer type 'const struct net_shaper_ops *' [-Werror=incompatible-pointer-types]

804 | .net_shaper_ops = &mana_shaper_ops,
| ^
drivers/net/ethernet/microsoft/mana/mana_en.c:804:35: note: (near initialization for 'mana_devops.ndo_neigh_setup')
cc1: some warnings being treated as errors

vim +804 drivers/net/ethernet/microsoft/mana/mana_en.c

793
794 static const struct net_device_ops mana_devops = {
795 .ndo_open = mana_open,
796 .ndo_stop = mana_close,
797 .ndo_select_queue = mana_select_queue,
798 .ndo_start_xmit = mana_start_xmit,
799 .ndo_validate_addr = eth_validate_addr,
800 .ndo_get_stats64 = mana_get_stats64,
801 .ndo_bpf = mana_bpf,
802 .ndo_xdp_xmit = mana_xdp_xmit,
803 .ndo_change_mtu = mana_change_mtu,

 > 804		.net_shaper_ops         = &mana_shaper_ops,

805 };
806

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