diff mbox

[1/2] PM/Domains: Add missing static storage class specifier in domain.c file

Message ID 1341903738-1791-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat July 10, 2012, 7:02 a.m. UTC
Fixes the folloiwng sparse warning:
drivers/base/power/domain.c:149:5:
warning: symbol '__pm_genpd_poweron' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/base/power/domain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Rafael J. Wysocki July 10, 2012, 8:06 p.m. UTC | #1
On Tuesday, July 10, 2012, Sachin Kamat wrote:
> Fixes the folloiwng sparse warning:
> drivers/base/power/domain.c:149:5:
> warning: symbol '__pm_genpd_poweron' was not declared. Should it be static?
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Applied to the pm-domains branch of the linux-pm.git tree.

Thanks,
Rafael


> ---
>  drivers/base/power/domain.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
> index 9727bc5..4f8e0d2 100644
> --- a/drivers/base/power/domain.c
> +++ b/drivers/base/power/domain.c
> @@ -159,7 +159,7 @@ static void genpd_recalc_cpu_exit_latency(struct generic_pm_domain *genpd)
>   * Restore power to @genpd and all of its masters so that it is possible to
>   * resume a device belonging to it.
>   */
> -int __pm_genpd_poweron(struct generic_pm_domain *genpd)
> +static int __pm_genpd_poweron(struct generic_pm_domain *genpd)
>  	__releases(&genpd->lock) __acquires(&genpd->lock)
>  {
>  	struct gpd_link *link;
>
diff mbox

Patch

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 9727bc5..4f8e0d2 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -159,7 +159,7 @@  static void genpd_recalc_cpu_exit_latency(struct generic_pm_domain *genpd)
  * Restore power to @genpd and all of its masters so that it is possible to
  * resume a device belonging to it.
  */
-int __pm_genpd_poweron(struct generic_pm_domain *genpd)
+static int __pm_genpd_poweron(struct generic_pm_domain *genpd)
 	__releases(&genpd->lock) __acquires(&genpd->lock)
 {
 	struct gpd_link *link;