Re: [net-next PATCH] amd-xgbe: use __maybe_unused to hide pm functions

2016-11-10 Thread Arnd Bergmann
On Wednesday, November 9, 2016 8:32:51 PM CET David Miller wrote: > From: Arnd Bergmann > Date: Tue, 8 Nov 2016 14:37:32 +0100 > > > The amd-xgbe ethernet driver hides its suspend/resume functions > > in #ifdef CONFIG_PM, but uses SIMPLE_DEV_PM_OPS() to make the > > reference conditional on CONF

Re: [net-next PATCH] amd-xgbe: use __maybe_unused to hide pm functions

2016-11-09 Thread David Miller
From: Arnd Bergmann Date: Tue, 8 Nov 2016 14:37:32 +0100 > The amd-xgbe ethernet driver hides its suspend/resume functions > in #ifdef CONFIG_PM, but uses SIMPLE_DEV_PM_OPS() to make the > reference conditional on CONFIG_PM_SLEEP, which results in a > warning when PM_SLEEP is not set but PM is:

[net-next PATCH] amd-xgbe: use __maybe_unused to hide pm functions

2016-11-08 Thread Arnd Bergmann
The amd-xgbe ethernet driver hides its suspend/resume functions in #ifdef CONFIG_PM, but uses SIMPLE_DEV_PM_OPS() to make the reference conditional on CONFIG_PM_SLEEP, which results in a warning when PM_SLEEP is not set but PM is: drivers/net/ethernet/amd/xgbe/xgbe-platform.c:553:12: error: 'xgbe