From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH 5/5] omap2+: pm_bus: make functions used as pointers as static Date: Tue, 04 Jan 2011 16:40:09 -0800 Message-ID: <87zkrg2nfa.fsf@ti.com> References: <1294171634-13943-1-git-send-email-nm@ti.com> <1294171634-13943-6-git-send-email-nm@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from na3sys009aog108.obsmtp.com ([74.125.149.199]:49467 "EHLO na3sys009aog108.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801Ab1AEAkN (ORCPT ); Tue, 4 Jan 2011 19:40:13 -0500 Received: by gyg4 with SMTP id 4so7722877gyg.22 for ; Tue, 04 Jan 2011 16:40:12 -0800 (PST) In-Reply-To: <1294171634-13943-6-git-send-email-nm@ti.com> (Nishanth Menon's message of "Tue, 4 Jan 2011 14:07:14 -0600") Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Nishanth Menon Cc: Tony , l-o , l-a Nishanth Menon writes: > omap_pm_runtime_suspend and omap_pm_runtime_resume are used > as function pointers and does not really need to be exposed > to the world. > > Fixes sparse warnings: > arch/arm/mach-omap2/pm_bus.c:23:5: warning: symbol 'omap_pm_runtime_suspend' was not declared. Should it be static? > arch/arm/mach-omap2/pm_bus.c:40:5: warning: symbol 'omap_pm_runtime_resume' was not declared. Should it be static? > > Signed-off-by: Nishanth Menon Thanks, will queue this one in my pm-fixes branch for 2.6.38-rc. Kevin > --- > arch/arm/mach-omap2/pm_bus.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/pm_bus.c b/arch/arm/mach-omap2/pm_bus.c > index 784989f..5acd2ab 100644 > --- a/arch/arm/mach-omap2/pm_bus.c > +++ b/arch/arm/mach-omap2/pm_bus.c > @@ -20,7 +20,7 @@ > #include > > #ifdef CONFIG_PM_RUNTIME > -int omap_pm_runtime_suspend(struct device *dev) > +static int omap_pm_runtime_suspend(struct device *dev) > { > struct platform_device *pdev = to_platform_device(dev); > int r, ret = 0; > @@ -37,7 +37,7 @@ int omap_pm_runtime_suspend(struct device *dev) > return ret; > }; > > -int omap_pm_runtime_resume(struct device *dev) > +static int omap_pm_runtime_resume(struct device *dev) > { > struct platform_device *pdev = to_platform_device(dev); > int r;