From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: ryusuke@osrg.net
Cc: moriai.satoshi@lab.ntt.co.jp,
linux-pm@lists.linux-foundation.org,
Johannes Berg <johannes@sipsolutions.net>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 2.6.23-rc1] PM: fix compiler error of PPC dart_iommu
Date: Tue, 24 Jul 2007 23:19:54 +0200 [thread overview]
Message-ID: <200707242319.55234.rjw@sisk.pl> (raw)
In-Reply-To: <200707241120.AA00211@paprika.lab.ntt.co.jp>
On Tuesday, 24 July 2007 13:20, Ryusuke Konishi wrote:
> A dummy inline function of register_nosave_region_late was accidentally
> removed by the recent PM patch that introduced suspend notifiers.
> This elimination causes the following compiler error on PPC machines.
>
> CC arch/powerpc/sysdev/dart_iommu.o
> arch/powerpc/sysdev/dart_iommu.c: In function 'iommu_init_late_dart':
> arch/powerpc/sysdev/dart_iommu.c:376: error: implicit declaration of function
> 'register_nosave_region_late'
> make[1]: *** [arch/powerpc/sysdev/dart_iommu.o] Error 1
> make: *** [arch/powerpc/sysdev] Error 2
>
> This patch fixes the problem.
>
> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
> ---
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Thanks!
> include/linux/suspend.h | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/suspend.h b/include/linux/suspend.h
> index e8e6da3..618f93c 100644
> --- a/include/linux/suspend.h
> +++ b/include/linux/suspend.h
> @@ -125,6 +125,9 @@ static inline int unregister_pm_notifier(struct notifier_block *nb)
> static inline void register_nosave_region(unsigned long b, unsigned long e)
> {
> }
> +static inline void register_nosave_region_late(unsigned long b, unsigned long e)
> +{
> +}
> #endif
>
> #endif /* _LINUX_SWSUSP_H */
>
>
--
"Premature optimization is the root of all evil." - Donald Knuth
prev parent reply other threads:[~2007-07-24 21:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 11:20 [PATCH 2.6.23-rc1] PM: fix compiler error of PPC dart_iommu Ryusuke Konishi
2007-07-24 21:19 ` 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=200707242319.55234.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-pm@lists.linux-foundation.org \
--cc=moriai.satoshi@lab.ntt.co.jp \
--cc=ryusuke@osrg.net \
/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