Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751956AbcDPUju (ORCPT ); Sat, 16 Apr 2016 16:39:50 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:62365 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbcDPUjs (ORCPT ); Sat, 16 Apr 2016 16:39:48 -0400 From: Arnd Bergmann To: Mark Brown Cc: Arnd Bergmann , Shubhrajyoti Datta , Moritz Fischer , Geliang Tang , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: cadence: mark pm functions __maybe_unused Date: Sat, 16 Apr 2016 22:39:21 +0200 Message-Id: <1460839171-1252854-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:0vO/Yj1g0KOBslZ1OGJrZulC34wpVmox82OekLo72Y3qMQcxxty umtG01o07V5XlkyndCoWITVMDhA5AfP5mwzYfoKlhsxL+OFfgWKbw9s6bijMuIolY25a2vi 6UKzQbP3JfCkvaESuOjsOfbgUKibmhRsPRs3OX7Yw3MMHEHBX/W+QQbnapxepU5cYbEql2T ntzY0x87VAljxQGPyOl6A== X-UI-Out-Filterresults: notjunk:1;V01:K0:OFndgUxeIk4=:D6PLmvsJ5ftKvvDkmhFK+1 trm4hcAmTAR0ub3Brw7j35T9AFX3DZSpqf2KYiCR0PXOUKb9v6ODeNum2evMA70gT80+en3dK lw5gkgyzHo9Qcd7F36YLyKeJcrpootPcim8y6GQ5lthySnPX81bsIlEQwWUSgsJQtQzPG8+pj 2uyBu90SHqzrP5+re4e+vWngLSkU18b8bV9CMZcaQzk9izXAMe1qgBvXlDC/G7ee3Qqv/4rFe H4lk5vO7w7y34HLzZYpDPgS/vSsukPyWmmXvVkTof7be0lWkcq1B6tEOHjfe+5qcD14YY7WNm VktOv06Mv0D4/t/Fc53IhWDJwXMZK6p/OYdMrHQ1BH6zUFVpBvBoN96TF93UFLMpmx6Uufovx r/gekq/v5oaEno9bPRJIAe2MIx+3oLhL5RWtmkajHSjU9eB8JpZOSLvRoVnMqRpi0UzUjN28Q YLbU0z0A0B+M/XouZPzUHE5omdh9AjDoTp1cM64LuMkk7PpoUdKREKYzAxS2Va7aqvN9zg36h 2H0Y1N7ajrWM9ZVp/AYyvM2PobvF7AVAccsPCJXKo5j3IcpL1lQ0H+ZWhb7RlbgujtSOLBOQY NEZR739JTWE2RE/N1H8qCXfAEpnj+/B5YvPFF1uBmFX2wnTkx6eG4N9fgWsmWcQm+2VYMC904 bMaea+u4TJSPS5BYK+B25XBi4vHRr2dqFnhTqwknPPBxOLOxV3lCXop0/RJmLu+wjwBs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1537 Lines: 40 The newly added runtime PM support for the cadence spi driver causes harmless warnings when PM is disabled: drivers/spi/spi-cadence.c:681:12: warning: 'cnds_runtime_suspend' defined but not used drivers/spi/spi-cadence.c:652:12: warning: 'cnds_runtime_resume' defined but not used This adds __maybe_unused annotations to the respective functions to shut up the warnings, while leaving the code in place for compile testing and avoiding ugly #ifdefs. Signed-off-by: Arnd Bergmann Fixes: d36ccd9f7ea4 ("spi: cadence: Runtime pm adaptation") --- drivers/spi/spi-cadence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index 8a0bd62a5088..1c57ce64abba 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -651,7 +651,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev) * * Return: 0 on success and error value on error */ -static int cnds_runtime_resume(struct device *dev) +static int __maybe_unused cnds_runtime_resume(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct cdns_spi *xspi = spi_master_get_devdata(master); @@ -680,7 +680,7 @@ static int cnds_runtime_resume(struct device *dev) * * Return: Always 0 */ -static int cnds_runtime_suspend(struct device *dev) +static int __maybe_unused cnds_runtime_suspend(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct cdns_spi *xspi = spi_master_get_devdata(master); -- 2.7.0