summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/af_rxrpc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-02 16:59:02 +0100
committerKalle Valo <kvalo@codeaurora.org>2016-03-08 12:32:52 +0200
commit836856e3bd61d0644e5178a2c1b51d90459e2788 (patch)
treef76ac0e50e3dd42b35b758706a1abb8f6728442f /net/rxrpc/af_rxrpc.c
parent73fb270592164b1917442f8bff4c791d095ee2ef (diff)
downloadop-kernel-dev-836856e3bd61d0644e5178a2c1b51d90459e2788.zip
op-kernel-dev-836856e3bd61d0644e5178a2c1b51d90459e2788.tar.gz
wireless: cw1200: use __maybe_unused to hide pm functions_
The cw1200 uses #ifdef to check for CONFIG_PM, but then uses SIMPLE_DEV_PM_OPS, which leaves the references out when CONFIG_PM_SLEEP is not defined, so we get a warning with PM=y && PM_SLEEP=n: drivers/net/wireless/st/cw1200/cw1200_spi.c:450:12: error: 'cw1200_spi_suspend' defined but not used [-Werror=unused-function] This removes the incorrect #ifdef and instead uses a __maybe_unused annotation to let the compiler know it can silently drop the function definition. For the DEV_PM_OPS definition, we can use an IS_ENABLED() check to avoid defining the structure when CONFIG_PM is not set without the #ifdef. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'net/rxrpc/af_rxrpc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud