Re: [PATCH net-next] mlx4: Mark PM functions as __maybe_unused

2020-07-02 Thread David Miller
From: Wei Yongjun Date: Thu, 2 Jul 2020 17:19:46 +0800 > In certain configurations without power management support, the > following warnings happen: > > drivers/net/ethernet/mellanox/mlx4/main.c:4388:12: > warning: 'mlx4_resume' defined but not used [-Wunused-function] > 4388 | static int mlx

Re: [PATCH net-next] mlx4: Mark PM functions as __maybe_unused

2020-07-02 Thread Jason Gunthorpe
On Thu, Jul 02, 2020 at 05:19:46PM +0800, Wei Yongjun wrote: > In certain configurations without power management support, the > following warnings happen: > > drivers/net/ethernet/mellanox/mlx4/main.c:4388:12: > warning: 'mlx4_resume' defined but not used [-Wunused-function] > 4388 | static int

Re: [PATCH net-next] mlx4: Mark PM functions as __maybe_unused

2020-07-02 Thread Leon Romanovsky
On Thu, Jul 02, 2020 at 06:27:12PM +0800, Wei Yongjun wrote: > > > On 2020/7/2 17:36, Leon Romanovsky wrote: > > On Thu, Jul 02, 2020 at 05:19:46PM +0800, Wei Yongjun wrote: > >> In certain configurations without power management support, the > >> following warnings happen: > >> > >> drivers/net/et

Re: [PATCH net-next] mlx4: Mark PM functions as __maybe_unused

2020-07-02 Thread Wei Yongjun
On 2020/7/2 17:36, Leon Romanovsky wrote: > On Thu, Jul 02, 2020 at 05:19:46PM +0800, Wei Yongjun wrote: >> In certain configurations without power management support, the >> following warnings happen: >> >> drivers/net/ethernet/mellanox/mlx4/main.c:4388:12: >> warning: 'mlx4_resume' defined bu

Re: [PATCH net-next] mlx4: Mark PM functions as __maybe_unused

2020-07-02 Thread Leon Romanovsky
On Thu, Jul 02, 2020 at 05:19:46PM +0800, Wei Yongjun wrote: > In certain configurations without power management support, the > following warnings happen: > > drivers/net/ethernet/mellanox/mlx4/main.c:4388:12: > warning: 'mlx4_resume' defined but not used [-Wunused-function] > 4388 | static int

[PATCH net-next] mlx4: Mark PM functions as __maybe_unused

2020-07-02 Thread Wei Yongjun
In certain configurations without power management support, the following warnings happen: drivers/net/ethernet/mellanox/mlx4/main.c:4388:12: warning: 'mlx4_resume' defined but not used [-Wunused-function] 4388 | static int mlx4_resume(struct device *dev_d) |^~~ drivers