From patchwork Wed Aug 8 14:47:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10594 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7BE0C23E53 for ; Wed, 8 Aug 2012 14:47:49 +0000 (UTC) Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by fiordland.canonical.com (Postfix) with ESMTP id 74E23A190A9 for ; Wed, 8 Aug 2012 14:47:49 +0000 (UTC) Received: by weyt11 with SMTP id t11so538639wey.11 for ; Wed, 08 Aug 2012 07:47:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=5WKAvgSY2HQCPptfQ8tHHvJc7ikgAOihLI5bS3t/qbU=; b=a0VB6fdVch74DYbTDZ/0Q7OgBCrtOkDK13TEPsWVsyphK1DzZQrhUcg/54MN+9jHf7 HQ8w87nLSbW6JiGnRNvunV6LGz3dy61qxHKnJbv/RYpnEvoLRCeqeqz6xQTJYGC5i7rx FbwoRIn1AX4ujl8EFBmU68uSR+MfrMHmMQc6NWQQownARW5Sz6dZ98/HlJQfKxMkIhNn XnrzOqArQ73WPSKzooy2CPuf5A1DyKeSz35Jd5fXZNqv7poacWKwAGfX0t5mbFBhEe2n d6XuQJyKko6v21s9Hr3UiVb/+7n5Ap0pNFOEw9fpuhqJOndpvEAezxzs6rrUpgK9SMt4 S66w== Received: by 10.50.57.168 with SMTP id j8mr43241igq.16.1344437268532; Wed, 08 Aug 2012 07:47:48 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp611884igc; Wed, 8 Aug 2012 07:47:47 -0700 (PDT) Received: by 10.180.100.131 with SMTP id ey3mr3312857wib.15.1344437267174; Wed, 08 Aug 2012 07:47:47 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTP id e5si6952817wiz.14.2012.08.08.07.47.46; Wed, 08 Aug 2012 07:47:47 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0M5aBM-1TwYpS2isa-00y0iq; Wed, 08 Aug 2012 16:47:35 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Thomas Abraham , "Rafael J. Wysocki" , Kukjin Kim Subject: [PATCH 05/11] ARM: exynos: exynos_pm_add_dev_to_genpd may be unused Date: Wed, 8 Aug 2012 16:47:22 +0200 Message-Id: <1344437248-20560-6-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1344437248-20560-1-git-send-email-arnd@arndb.de> References: <1344437248-20560-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:/Yt2Wi6sNF2Lyg1hNWx1mU08J0YMfc2U7mxrp+kthul 1wr6iHxKGBU8rj58GgyrNjF1gWsHDlMBgNQhqyE6WK0H7cl719 uiH40E0+nHjIsHn2l5fQWCJnBF5z0p+LloZhBaO99Is+W8GV5T c6M0U8Q1byckfhqoWt+yGqq+XB9NramsfWtbxzPbDT1J5qPF7K Nt9pp8rfZ9KkbJHXC7o4TYGN97gf9CS22nIzhm6kFyUUD+k23y Cr+DshbyfXEH3QQUoNEVR6ZuRY1bDraboTp9HgybhF2eXknmkz uJYMd6sbNBKBG8OHcYfUvcfz41Ul9mrMe1ZmtplndwA19zifB3 wo3ifomW66l1zTO67Oy4r4jSk0dRuhksE5kHKhBbFa/b/IdKXc fUJTz5kPdz2qEO1VSc+Juu543RLBGxnVBI= X-Gm-Message-State: ALoCoQmffi1Q6zQK+x6KwUOdGNy8MkoIKqII85Of60rNGC4mGDeCuxi8mtmvcYmL0ChY6iDTjaaN exynos_pm_add_dev_to_genpd is used if one or more out of a large number of Kconfig symbols are enabled. However the new exynos_defconfig selects none of those, so the function becomes unused. Marking it so lets the compiler automatically discard it. Without this patch, building exynos_defconfig results in: arch/arm/mach-exynos/pm_domains.c:118:123: warning: 'exynos_pm_add_dev_to_genpd' defined but not used [-Wunused-function] Signed-off-by: Arnd Bergmann Cc: Thomas Abraham Cc: Rafael J. Wysocki Cc: Kukjin Kim --- arch/arm/mach-exynos/pm_domains.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c index 373c3c0..c0bc83a 100644 --- a/arch/arm/mach-exynos/pm_domains.c +++ b/arch/arm/mach-exynos/pm_domains.c @@ -115,7 +115,7 @@ static __init int exynos_pm_dt_parse_domains(void) } #endif /* CONFIG_OF */ -static __init void exynos_pm_add_dev_to_genpd(struct platform_device *pdev, +static __init __maybe_unused void exynos_pm_add_dev_to_genpd(struct platform_device *pdev, struct exynos_pm_domain *pd) { if (pdev->dev.bus) {