diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-04 12:28:33 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-08-10 12:27:34 +0200 |
commit | 8ab08c0c4c39f36d3bf89e03a4bc3e6898e1563c (patch) | |
tree | 7f2151ae998c1b49736c48bc6b551fadffd42c3b /arch/arm/mach-exynos | |
parent | usb/ohci-omap: remove unused variable (diff) | |
download | linux-8ab08c0c4c39f36d3bf89e03a4bc3e6898e1563c.tar.xz linux-8ab08c0c4c39f36d3bf89e03a4bc3e6898e1563c.zip |
ARM: exynos: exynos_pm_add_dev_to_genpd may be unused
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 <arnd@arndb.de>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/pm_domains.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c index 373c3c00d24c..c0bc83a7663e 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) { |