[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250625190518.GP1562@horms.kernel.org>
Date: Wed, 25 Jun 2025 20:05:18 +0100
From: Simon Horman <horms@...nel.org>
To: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>
Cc: kys@...rosoft.com, haiyangz@...rosoft.com, wei.liu@...nel.org,
decui@...rosoft.com, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
linux-hyperv@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2] net: mana: Fix build errors when
CONFIG_NET_SHAPER is disabled
On Wed, Jun 25, 2025 at 04:35:55AM -0700, Erni Sri Satya Vennela wrote:
> 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@...ux.microsoft.com>
> Fixes: 75cabb46935b ("net: mana: Add support for net_shaper_ops")
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202506230625.bfUlqb8o-lkp@intel.com/
> ---
> Changes in v2:
> * Use "select NET_SHAPER" in Kconfig instead of adding multiple checks for
> CONFIG_NET_SHAPER.
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists