From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] PM: fix compile breakage on sh #ifndef CONFIG_PM_RUNTIME
Date: Tue, 22 Nov 2011 23:42:11 +0000 [thread overview]
Message-ID: <201111230042.11704.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.64.1111211642200.10414@axis700.grange>
On Tuesday, November 22, 2011, Guennadi Liakhovetski wrote:
> On Tue, 22 Nov 2011, Rafael J. Wysocki wrote:
>
> > On Monday, November 21, 2011, Guennadi Liakhovetski wrote:
> > > Fix the following compalitaion breakage:
> > >
> > > In file included from linux/drivers/sh/pm_runtime.c:15:
> > > linux/include/linux/pm_domain.h: In function 'dev_to_genpd':
> > > linux/include/linux/pm_domain.h:142: error: implicit declaration of function 'ERR_PTR'
> > > linux/include/linux/pm_domain.h:142: warning: return makes pointer from integer without a cast
> > > In file included from linux/include/linux/sh_clk.h:10,
> > > from linux/drivers/sh/pm_runtime.c:19:
> > > linux/include/linux/err.h: At top level:
> > > linux/include/linux/err.h:22: error: conflicting types for 'ERR_PTR'
> > > linux/include/linux/pm_domain.h:142: note: previous implicit declaration of 'ERR_PTR' was here
> > > make[3]: *** [drivers/sh/pm_runtime.o] Error 1
> > >
> > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> > > ---
> > > diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
> > > index 765083ad..b931682 100644
> > > --- a/include/linux/pm_domain.h
> > > +++ b/include/linux/pm_domain.h
> > > @@ -10,6 +10,7 @@
> > > #define _LINUX_PM_DOMAIN_H
> > >
> > > #include <linux/device.h>
> > > +#include <linux/err.h>
> > >
> > > enum gpd_status {
> > > GPD_STATE_ACTIVE = 0, /* PM domain is active */
> >
> > That new #include is only necessary if CONFIG_PM_GENERIC_DOMAINS is unset, right?
>
> Yes, I think so.
Can you respin the patch with that in mind, please?
Rafael
prev parent reply other threads:[~2011-11-22 23:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 15:56 [PATCH] PM: fix compile breakage on sh #ifndef CONFIG_PM_RUNTIME Guennadi Liakhovetski
2011-11-21 19:53 ` Rafael J. Wysocki
2011-11-21 23:32 ` Guennadi Liakhovetski
2011-11-22 22:25 ` Rafael J. Wysocki
2011-11-22 22:27 ` Guennadi Liakhovetski
2011-11-22 23:42 ` 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=201111230042.11704.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-sh@vger.kernel.org \
/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