From: Andrew Morton <akpm@osdl.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: olh@suse.de, davej@redhat.com, linux-kernel@vger.kernel.org,
pavel@suse.cz, benh@kernel.crashing.org
Subject: Re: [PATCH] Fix build failure in recent pm_prepare_* changes.
Date: Mon, 6 Feb 2006 11:38:09 -0800 [thread overview]
Message-ID: <20060206113809.51c230ba.akpm@osdl.org> (raw)
In-Reply-To: <200602061603.29989.rjw@sisk.pl>
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
>
> Sorry, my recent change has broken it, but pm_prepare_console() and
> pm_restore_console() are only static if CONFIG_VT or CONFIG_VT_CONSOLE
> is not set which Ben told me should not happen on Macs.
But kernel/power/power.h has
#ifdef SUSPEND_CONSOLE
extern int pm_prepare_console(void);
extern void pm_restore_console(void);
#else
static int pm_prepare_console(void) { return 0; }
static void pm_restore_console(void) {}
#endif
> --- linux-2.6.16-rc1-mm5.orig/drivers/macintosh/via-pmu.c
> +++ linux-2.6.16-rc1-mm5/drivers/macintosh/via-pmu.c
> @@ -2070,6 +2070,14 @@ restore_via_state(void)
> out_8(&via[IER], IER_SET | SR_INT | CB1_INT);
> }
>
> +#if defined(CONFIG_VT) && defined(CONFIG_VT_CONSOLE)
> +extern int pm_prepare_console(void);
> +extern void pm_restore_console(void);
> +#else
> +static int pm_prepare_console(void) { return 0; }
> +static void pm_restore_console(void) {}
> +#endif
> +
These should be in a header file. Presumably one which
kernel/power/power.h includes, too.
next prev parent reply other threads:[~2006-02-06 19:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200602032312.k13NCDAc012658@hera.kernel.org>
2006-02-05 12:56 ` Olaf Hering
2006-02-05 19:02 ` Dave Jones
2006-02-05 19:50 ` Adrian Bunk
2006-02-06 7:28 ` Olaf Hering
2006-02-06 14:23 ` Olaf Hering
2006-02-06 15:03 ` Rafael J. Wysocki
2006-02-06 19:38 ` Andrew Morton [this message]
2006-02-06 23:57 ` Rafael J. Wysocki
2006-02-07 0:44 ` Andrew Morton
2006-02-07 14:51 ` Rafael J. Wysocki
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=20060206113809.51c230ba.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olh@suse.de \
--cc=pavel@suse.cz \
--cc=rjw@sisk.pl \
/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
Powered by JetHome