Re: [PATCH net-next] ksz884x: mark pcidev_suspend() as __maybe_unused

2020-07-03 Thread Vaibhav Gupta
On Thu, Jul 2, 2020 at 2:38 PM Wei Yongjun wrote: > > In certain configurations without power management support, gcc report > the following warning: > > drivers/net/ethernet/micrel/ksz884x.c:7182:12: warning: > 'pcidev_suspend' defined but not used [-Wunused-function] > 7182 | static int

[PATCH net-next] ksz884x: mark pcidev_suspend() as __maybe_unused

2020-07-03 Thread Wei Yongjun
In certain configurations without power management support, gcc report the following warning: drivers/net/ethernet/micrel/ksz884x.c:7182:12: warning: 'pcidev_suspend' defined but not used [-Wunused-function] 7182 | static int pcidev_suspend(struct device *dev_d) |

Re: [PATCH net-next] ksz884x: mark pcidev_suspend() as __maybe_unused

2020-07-02 Thread David Miller
From: Wei Yongjun Date: Thu, 2 Jul 2020 17:18:10 +0800 > In certain configurations without power management support, gcc report > the following warning: > > drivers/net/ethernet/micrel/ksz884x.c:7182:12: warning: > 'pcidev_suspend' defined but not used [-Wunused-function] > 7182 | static int