From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@osdl.org>
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: Tue, 7 Feb 2006 00:57:26 +0100 [thread overview]
Message-ID: <200602070057.26925.rjw@sisk.pl> (raw)
In-Reply-To: <20060206113809.51c230ba.akpm@osdl.org>
On Monday 06 February 2006 20:38, Andrew Morton wrote:
> "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
There is
#if defined(CONFIG_VT) && defined(CONFIG_VT_CONSOLE)
#define SUSPEND_CONSOLE (MAX_NR_CONSOLES-1)
#endif
earlier in there.
> 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.
Then I think I should move all that to include/linux/suspend.h.
Greetings,
Rafael
next prev parent reply other threads:[~2006-02-06 23:55 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
2006-02-06 23:57 ` Rafael J. Wysocki [this message]
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=200602070057.26925.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=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 \
/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®