Skip to content

Commit 1521408

Browse files
shreeya-patel98PlaidCat
authored andcommitted
net: mana: Fix build errors when CONFIG_NET_SHAPER is disabled
jira LE-4472 commit-author Erni Sri Satya Vennela <ernis@linux.microsoft.com> commit 11cd020 Fix build errors when CONFIG_NET_SHAPER is disabled, including: 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, Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com> Fixes: 75cabb4 ("net: mana: Add support for net_shaper_ops") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202506230625.bfUlqb8o-lkp@intel.com/ Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/1750851355-8067-1-git-send-email-ernis@linux.microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> (cherry picked from commit 11cd020) Signed-off-by: Shreeya Patel <spatel@ciq.com>
1 parent cae1334 commit 1521408

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/microsoft

drivers/net/ethernet/microsoft/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config MICROSOFT_MANA
2222
depends on PCI_HYPERV
2323
select AUXILIARY_BUS
2424
select PAGE_POOL
25+
select NET_SHAPER
2526
help
2627
This driver supports Microsoft Azure Network Adapter (MANA).
2728
So far, the driver is only supported on X86_64.

0 commit comments

Comments
 (0)