From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Adrian Bunk <bunk@stusta.de>
Cc: pavel@suse.cz, linux-pm@lists.linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] drivers/base/power/: make 2 functions static
Date: Sun, 29 Jul 2007 18:37:36 +0200 [thread overview]
Message-ID: <200707291837.37244.rjw@sisk.pl> (raw)
In-Reply-To: <20070729145650.GH16817@stusta.de>
On Sunday, 29 July 2007 16:56, Adrian Bunk wrote:
> suspend_device() and resume_device() can now become static.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
> ---
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
> drivers/base/power/power.h | 6 ------
> drivers/base/power/resume.c | 2 +-
> drivers/base/power/suspend.c | 2 +-
> 3 files changed, 2 insertions(+), 8 deletions(-)
>
> --- linux-2.6.23-rc1-mm1/drivers/base/power/power.h.old 2007-07-26 05:14:12.000000000 +0200
> +++ linux-2.6.23-rc1-mm1/drivers/base/power/power.h 2007-07-26 05:15:49.000000000 +0200
> @@ -55,12 +55,6 @@
>
> extern void dpm_resume(void);
> extern void dpm_power_up(void);
> -extern int resume_device(struct device *);
> -
> -/*
> - * suspend.c
> - */
> -extern int suspend_device(struct device *, pm_message_t);
>
> #else /* CONFIG_PM */
>
> --- linux-2.6.23-rc1-mm1/drivers/base/power/resume.c.old 2007-07-26 05:14:28.000000000 +0200
> +++ linux-2.6.23-rc1-mm1/drivers/base/power/resume.c 2007-07-26 05:14:39.000000000 +0200
> @@ -20,7 +20,7 @@
> *
> */
>
> -int resume_device(struct device * dev)
> +static int resume_device(struct device * dev)
> {
> int error = 0;
>
> --- linux-2.6.23-rc1-mm1/drivers/base/power/suspend.c.old 2007-07-26 05:16:00.000000000 +0200
> +++ linux-2.6.23-rc1-mm1/drivers/base/power/suspend.c 2007-07-26 05:16:17.000000000 +0200
> @@ -54,7 +54,7 @@
> * @state: Power state device is entering.
> */
>
> -int suspend_device(struct device * dev, pm_message_t state)
> +static int suspend_device(struct device * dev, pm_message_t state)
> {
> int error = 0;
>
>
>
>
--
"Premature optimization is the root of all evil." - Donald Knuth
prev parent reply other threads:[~2007-07-29 16:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 14:56 Adrian Bunk
2007-07-29 16:37 ` Rafael J. Wysocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200707291837.37244.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®