ARM: exynos: exynos_pm_add_dev_to_genpd may be unused
authorArnd Bergmann <[email protected]>
Sat, 4 Aug 2012 10:28:33 +0000 (10:28 +0000)
committerArnd Bergmann <[email protected]>
Fri, 10 Aug 2012 10:27:34 +0000 (12:27 +0200)
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 <[email protected]>
Acked-by: Thomas Abraham <[email protected]>
Acked-by: Kukjin Kim <[email protected]>
Cc: Rafael J. Wysocki <[email protected]>
arch/arm/mach-exynos/pm_domains.c

index 373c3c00d24cdbbe054a1aae60625d97188e6208..c0bc83a7663ee5877edfc0ff768b63a1ed1a2e30 100644 (file)
@@ -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) {