Re: [PATCH net-next] mlx5: work around unused function warning

2017-04-27 Thread Leon Romanovsky
On Thu, Apr 27, 2017 at 02:04:15PM +0200, Arnd Bergmann wrote: > On Thu, Apr 27, 2017 at 1:55 PM, Leon Romanovsky wrote: > > On Thu, Apr 27, 2017 at 01:04:02PM +0200, Arnd Bergmann wrote: > >> The previous patch addressed a sparse warning but replaced it with a > >> compiler warning when CONFIG_MO

Re: [PATCH net-next] mlx5: work around unused function warning

2017-04-27 Thread Arnd Bergmann
On Thu, Apr 27, 2017 at 1:55 PM, Leon Romanovsky wrote: > On Thu, Apr 27, 2017 at 01:04:02PM +0200, Arnd Bergmann wrote: >> The previous patch addressed a sparse warning but replaced it with a >> compiler warning when CONFIG_MODULES is disabled: >> >> drivers/net/ethernet/mellanox/mlx5/core/ipoib.

Re: [PATCH net-next] mlx5: work around unused function warning

2017-04-27 Thread Leon Romanovsky
On Thu, Apr 27, 2017 at 01:04:02PM +0200, Arnd Bergmann wrote: > The previous patch addressed a sparse warning but replaced it with a > compiler warning when CONFIG_MODULES is disabled: > > drivers/net/ethernet/mellanox/mlx5/core/ipoib.c:485:13: error: > 'mlx5_rdma_netdev_free' defined but not use

[PATCH net-next] mlx5: work around unused function warning

2017-04-27 Thread Arnd Bergmann
The previous patch addressed a sparse warning but replaced it with a compiler warning when CONFIG_MODULES is disabled: drivers/net/ethernet/mellanox/mlx5/core/ipoib.c:485:13: error: 'mlx5_rdma_netdev_free' defined but not used [-Werror=unused-function] drivers/net/ethernet/mellanox/mlx5/core/ipoi