From patchwork Sat Apr 16 20:39:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102501 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp572874qge; Sat, 16 Apr 2016 13:39:50 -0700 (PDT) X-Received: by 10.98.91.3 with SMTP id p3mr39007099pfb.64.1460839189946; Sat, 16 Apr 2016 13:39:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si11522440pfr.51.2016.04.16.13.39.49; Sat, 16 Apr 2016 13:39:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751614AbcDPUjt (ORCPT + 1 other); Sat, 16 Apr 2016 16:39:49 -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 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0M8zYj-1b3soP08jd-00CR0k; Sat, 16 Apr 2016 22:39:36 +0200 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-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 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(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);