Re: [BUG] usb_wwan: build error

From: Randy Dunlap
Date: Thu Mar 17 2011 - 13:07:38 EST


On Thu, 17 Mar 2011 07:02:28 +0100 Oliver Neukum wrote:

> Am Donnerstag, 17. MÃrz 2011, 06:51:40 schrieb Eric Dumazet:
> > commit 16871dcac74c (usb_wwan: error case of resume) added a build error
> > if CONFIG_PM_RUNTIME is not defined.
> >
> > CC [M] drivers/usb/serial/usb_wwan.o
> > drivers/usb/serial/usb_wwan.c: In function âplay_delayedâ:
> > drivers/usb/serial/usb_wwan.c:702: error: âstruct dev_pm_infoâ has no
> > member named âusage_countâ
> >
> > I suspect we should use pm_runtime_put_noidle() instead
>
> Yes. I don't understand why it compiled for me. Has it been removed?

usage_count is only there when CONFIG_PM_RUNTIME is enabled.
Building with CONFIG_PM_RUNTIME disabled produces a build error.


> Regards
> Oliver
>
> PS: patch about to follow

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/