From patchwork Mon Feb 1 10:38:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101010 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2971079lbb; Mon, 1 Feb 2016 02:57:18 -0800 (PST) X-Received: by 10.67.22.97 with SMTP id hr1mr37286497pad.49.1454324238862; Mon, 01 Feb 2016 02:57:18 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t85si45669608pfa.211.2016.02.01.02.57.17; Mon, 01 Feb 2016 02:57:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009AbcBAK5Q (ORCPT + 11 others); Mon, 1 Feb 2016 05:57:16 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:51164 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751886AbcBAK5P (ORCPT ); Mon, 1 Feb 2016 05:57:15 -0500 Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0Lz2sS-1a4Lmw3E3M-014GLP; Mon, 01 Feb 2016 11:56:30 +0100 From: Arnd Bergmann To: "Rafael J. Wysocki" Cc: Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] PM / Domains: mark genpd_poweron as __maybe_unused Date: Mon, 01 Feb 2016 11:38:43 +0100 Message-ID: <3864075.BdhPDUQ9fB@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:jiUXL7Oq6q0rtsgJ8uyD2JElxH6xo+R4Q1VoIKjYbCAYlRgujGA ErW6YMaQ25cHixSfhNp0bVlcz8XfjHG4LcUPU55L4gEnE5XJhTg2Lfe/dgxcIEiZQRFAknf m+v6lPYRLWNLGAI7ewihptKmS4vxazwesNklKtPC4JZO12tUboH5UEik9/LJtP3PpSvJGdZ 17Pt9ELQGVA4riBO9mhNw== X-UI-Out-Filterresults: notjunk:1; V01:K0:g0Sumg86J/c=:tSpMSC5Dl18LROnoNkcQhO nqWiuGt3YIOQ1r/U3I97meRas//QysjoY0X+HIuvpeP6fkcosfLjAuVH9zQ1+/nkFGFqOLWkT W1NuLqe56yV9tvmI0OoW6mndwymYPX/KJTR5Bss7loIuOYioYlVU+CZCQV0EJKwrI7qCN2dop QXxCvjacpLwZHGM90gJV1QYegnzOvNu5cywzIJsGU0Xh9YrfBKgexRnx5M+KCWP3vcc05u1z7 1EiZ0Y4xabCkIQY6RjpnqtCqfzH3S1R+SNNisGDNDKnkxhb2ajgU9cADH0ohkyZN6I3NBHAln DWlEbG8mAqBR0ZyEv4AKFJn7PZsc5gYh82ZrXWv7AT3Dx2YgHVg4NvANEnpSj/XhU69jXGHed qDfDc5Ob8St6mb7SuzoheS46d+5tVyVZGxACfqvfshaMqwnJYH4buaBj61kxV5bmeUj4/D/cF Of0YhcIT6LNBH0JQaOFC/t5v7aLqxxCt6IxPSYsm8fpH/Kz+/VFYe4DqDYmZu7AxKLuwQX80q 6myPHEC5QWQ+D/1Xf6Gs1GvLPhlupfjZZ5N/G3GZr3z7iegLTDMiCnmOjaY0+WTOsgk6FnMw4 osziN7my6siYXltitrja1QaYPWaNUAuGw3EZ4AE2FspkYfVx6q+AbDsaa5tqLcGdk5hWoQn8L Rm4iysa6EmvaR8DchGaWqv0SAAU3dSw3+wDZlkS5Uk5OSQ+3Ptwj5RiRdFevybBOBOM+tJUlM uZS/RERp4zjyXs3d Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The rework of the power domain code has made the genpd_poweron() function local to the file it's defined in, and the only remaining caller is conditionally compiled based on CONFIG_PM_GENERIC_DOMAINS_OF, so we get a warning when that is disabled: drivers/base/power/domain.c:234:12: error: 'genpd_poweron' defined but not used [-Werror=unused-function] This adds a __maybe_unused annotation to the function so gcc can figure out by itself that it should silently remove the definition in this case. Signed-off-by: Arnd Bergmann Fixes: ea823c7cbffa ("PM / Domains: Remove pm_genpd_poweron() API") -- To unsubscribe from this list: send the line "unsubscribe linux-pm" 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/base/power/domain.c b/drivers/base/power/domain.c index 784dbe897a5e..a14b2f1ae085 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -231,7 +231,7 @@ static int __genpd_poweron(struct generic_pm_domain *genpd, unsigned int depth) * genpd_poweron - Restore power to a given PM domain and its masters. * @genpd: PM domain to power up. */ -static int genpd_poweron(struct generic_pm_domain *genpd) +static int __maybe_unused genpd_poweron(struct generic_pm_domain *genpd) { int ret;