From patchwork Fri May 25 21:07:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 136991 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp68099lji; Fri, 25 May 2018 14:08:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFg5WC0SGywseulboyiMiwWmut89kxXYKRNJkD0LynoMD2VT/lH0Sasd/N1zWjiphySbpl X-Received: by 2002:a65:644a:: with SMTP id s10-v6mr3191925pgv.360.1527282504514; Fri, 25 May 2018 14:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527282504; cv=none; d=google.com; s=arc-20160816; b=w51U8BTo1b79C2qZAdxzinLYe9EN4ZBi+xs0h3WPk8CiU3DFR+ytu4QZGubrck3QVm zCmdakIUO+x1eWjKyzqHAjiZR61DhYJs1LCQYAuO9k6hCLd7b6wYg/AiazXnayz63Aft wPBknj/quN9+4C7ym0zxfPc1TU+F0aHgNQ3pZk7X/kwPebjp9Wl+LgUJI6wsiqxeqHRP 5sTEFBSJJfVludBPZrC4F4UpSMY4D/ycu1sGyWGr77X2y+08rNlfFw8k7ccbahIGySEK GxfZaUJiD5sCw4IQ3DyjRsFtbkt8y/yXYLJ90HR4Gl3aFgH9K+Oxyhqid2RGVsWoGR2o Fl7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Jj3Vc/4ms1gcAhb650PZYW1DY5yVhRuUpTfkRJD6it0=; b=ml8IjUH2osDOwTy3NYKQR5mwwEkyKcRlR2LxOFIz7+AShYgzSf7Q+yn2PrEvNGsJEv GDv1zyWQi3uzQRXn5nrZJx7LzVcNZpqot1QgDsRyISSGnagTNeYWaxKBrgRLil4CD0gL YMewWcTyw720yXhsmGOECN1/00oWca2rhUzhHytzWQ7AAyAP1KqH25g0Jqs4zmvgZ9ep D9n6kl88K0EZOnBoywxPUG7uHebSwPiSOjEtb8X6se2EHzq8+UUDP1NYwxELdKELM0ic NjN1k0CF9Gs+10zZGUehTpG/W81qelrrJaQER+c8me6yhcXhEg6Y4b+jM2nGWdYxofCk zv/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si19039144pgv.246.2018.05.25.14.08.24; Fri, 25 May 2018 14:08:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968411AbeEYVIX (ORCPT + 6 others); Fri, 25 May 2018 17:08:23 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:50037 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968376AbeEYVIW (ORCPT ); Fri, 25 May 2018 17:08:22 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LsMbE-1gJk8q1aI4-0123w8; Fri, 25 May 2018 23:07:56 +0200 From: Arnd Bergmann To: Ulf Hansson , Maxime Ripard , Chen-Yu Tsai Cc: Arnd Bergmann , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: sunxi: mark PM functions as __maybe_unused Date: Fri, 25 May 2018 23:07:42 +0200 Message-Id: <20180525210752.1794502-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:1tau9DkHdvzXdx1rmlnNedUZAtEcCsULpVUWZY9PJKqYXvuKts8 8cud7qqENKSP3Cr6rMwZrcGels0in+cT9klDT0nPI5xyyp1ZVs6XfIwGjDIwJlaTOcdBMRL WzIY72fjk1P3ZzAalEXIHFu4NOX2kZN1McqQGU3YFR5aGn/TRioCMH1YjJPFjW9tTFojScg RjmZmQJdorjWMvZFfIUkg== X-UI-Out-Filterresults: notjunk:1; V01:K0:nBzFG2o06pc=:XFFPVm55PpQERwF0ile6rz YaJfws7imjQRcYBMsOtf5rGPWe/EnbRnBlyQLRO0YDhEt01gzLpbaWUKJGs9jGhdbE0moKjJQ C6DvRUeyR2sxoVd4AVpJX5deztSfYbKvvZXzTp3M4m/BbgLuaYdTNImgyFITPUf2Z+tIMfrpt WSDOqWfBLMzKa+Cc871N/CWZ/Dpmx/vhjTlkc4h4rPtgsDiibjRWVH4fKsDK2H/fs3fnvjrLg qQOEsANmu+IkWP2BQXoW2v69/VGhqiLb1iBdyeCbV6DZA7Gl+hX8x0n70lPicNUi/RMcaFVkU Rty1GW4uF1mCQws2UyV/ODnGW6NN+Br8TBUTbI8wjBxT9yHlpf5Fvu1MtTvrM+95Jho0w2UnX xofHrhpW49pLW7sXpVzwLGnhlh38JnIExBcJ/v18t8zhR1Kc2T3vSUDl7RplFGVj+BLV95ZN5 iEEOXf7I8xP7g4jfIZoMfnHGkJWML5Yp1bZ7WssQccztIe+jnaohc1r7uQAGBu5W9EXJe/fPT mlhyW9Rt2ZbS07h923Cji9UI+Sa0gtNCi9kGcHJb5CGrTPU+xPkGiZrSwN+XTIRqRmyNc15K/ Nb5hqkamcWBTxAlqGgY10C/bin9wHuSNchD8VcUmm/ePdGQjS8yzUtBLcFCoSCwtT1x5IIouf v0YHGtdxfAsA5mvQqfqlZjQKIbeWZ5Gv965OomUDlJmAjMaRVTHIpuP0I9k+tSfjksaU= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The newly added runtime-pm functions cause a harmless warning when CONFIG_PM is disabled: drivers/mmc/host/sunxi-mmc.c:1452:12: error: 'sunxi_mmc_runtime_suspend' defined but not used [-Werror=unused-function] static int sunxi_mmc_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/host/sunxi-mmc.c:1435:12: error: 'sunxi_mmc_runtime_resume' defined but not used [-Werror=unused-function] static int sunxi_mmc_runtime_resume(struct device *dev) This marks them as __maybe_unused to shut up the warning. Fixes: 9a8e1e8cc2c0 ("mmc: sunxi: Add runtime_pm support") Signed-off-by: Arnd Bergmann --- drivers/mmc/host/sunxi-mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Maxime Ripard diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c index 97c6b79b7d6f..837888b96bd3 100644 --- a/drivers/mmc/host/sunxi-mmc.c +++ b/drivers/mmc/host/sunxi-mmc.c @@ -1432,7 +1432,7 @@ static int sunxi_mmc_remove(struct platform_device *pdev) return 0; } -static int sunxi_mmc_runtime_resume(struct device *dev) +static int __maybe_unused sunxi_mmc_runtime_resume(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); struct sunxi_mmc_host *host = mmc_priv(mmc); @@ -1449,7 +1449,7 @@ static int sunxi_mmc_runtime_resume(struct device *dev) return 0; } -static int sunxi_mmc_runtime_suspend(struct device *dev) +static int __maybe_unused sunxi_mmc_runtime_suspend(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); struct sunxi_mmc_host *host = mmc_priv(mmc);