mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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: 75cabb4693
("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>
33 lines
971 B
Text
33 lines
971 B
Text
#
|
|
# Microsoft Azure network device configuration
|
|
#
|
|
|
|
config NET_VENDOR_MICROSOFT
|
|
bool "Microsoft Network Devices"
|
|
default y
|
|
help
|
|
If you have a network (Ethernet) device belonging to this class, say Y.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip the
|
|
question about Microsoft network devices. If you say Y, you will be
|
|
asked for your specific device in the following question.
|
|
|
|
if NET_VENDOR_MICROSOFT
|
|
|
|
config MICROSOFT_MANA
|
|
tristate "Microsoft Azure Network Adapter (MANA) support"
|
|
depends on PCI_MSI
|
|
depends on X86_64 || (ARM64 && !CPU_BIG_ENDIAN)
|
|
depends on PCI_HYPERV
|
|
select AUXILIARY_BUS
|
|
select PAGE_POOL
|
|
select NET_SHAPER
|
|
help
|
|
This driver supports Microsoft Azure Network Adapter (MANA).
|
|
So far, the driver is only supported on X86_64.
|
|
|
|
To compile this driver as a module, choose M here.
|
|
The module will be called mana.
|
|
|
|
endif #NET_VENDOR_MICROSOFT
|