> On Tue, 18 Mar 2008
akpm@linux-foundation.org wrote:
>
> > Subject: pm-convert-wakeup-flag-accessors-to-inline-functions fix
> > From: Andrew Morton <akpm@linux-foundation.org>
> >
> > ia64 allmodconfig:
> >
> > In file included from include/linux/device.h:381,
> > from include/linux/rtc.h:110,
> > from include/linux/efi.h:19,
> > from include/asm/sal.h:40,
> > from include/asm-ia64/mca.h:20,
> > from arch/ia64/kernel/asm-offsets.c:17:
> > include/linux/pm_wakeup.h: In function `device_init_wakeup':
> > include/linux/pm_wakeup.h:35: error: structure has no member named `should_wakeup'
> > include/linux/pm_wakeup.h: In function `device_set_wakeup_enable':
> > include/linux/pm_wakeup.h:45: error: structure has no member named `should_wakeup'
> > include/linux/pm_wakeup.h: In function `device_may_wakeup':
> > include/linux/pm_wakeup.h:50: error: structure has no member named `should_wakeup'
> >
> > Cc: Alan Stern <stern@rowland.harvard.edu>
> > Cc: Greg KH <greg@kroah.com>
> > Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
> > Cc: Len Brown <lenb@kernel.org>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> > ---
> >
> > include/linux/pm_wakeup.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff -puN include/linux/pm_wakeup.h~pm-convert-wakeup-flag-accessors-to-inline-functions-fix include/linux/pm_wakeup.h
> > --- a/include/linux/pm_wakeup.h~pm-convert-wakeup-flag-accessors-to-inline-functions-fix
> > +++ a/include/linux/pm_wakeup.h
> > @@ -25,7 +25,7 @@
> > # error "please don't include this file directly"
> > #endif
> >
> > -#ifdef CONFIG_PM
> > +#ifdef CONFIG_PM_SLEEP
> >
> > /* changes to device_may_wakeup take effect on the next pm state change.
> > * by default, devices should wakeup if they can.
>
> This is completely wrong.
>
> Andrew, I don't know what happened. But if you go back and compare my
> original patch to the
> pm-make-wakeup-flags-available-whenever-config_pm-is-set patch you
> actually applied, you'll see that you managed to leave out a hunk.
> Possibly because of a conflict with one of Rafael's patches affecting
> the same area of code.
>
> Here's a URL for that patch as rebased by Rafael:
>
>
http://marc.info/?l=linux-kernel&m=120528034413861&w=2