On Sa, 2008-02-23 at 19:13 +0100, Rafael J. Wysocki wrote:=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =EF=BB=BFHmm. Doesn't compile for me in 2.6.25-rc2-git7: CC [M] drivers/usb/host/u132-hcd.o drivers/usb/host/u132-hcd.c: In function =E2=80=98u132_suspend=E2=80=99: drivers/usb/host/u132-hcd.c:3224: error: expected expression before =E2=80=98int=E2=80=99 drivers/usb/host/u132-hcd.c:3225: error: =E2=80=98ports=E2=80=99 undeclared= (first use in this function) drivers/usb/host/u132-hcd.c:3225: error: (Each undeclared identifier is reported only once drivers/usb/host/u132-hcd.c:3225: error: for each function it appears in.) make[3]: *** [drivers/usb/host/u132-hcd.o] Error 1 make[2]: *** [drivers/usb/host] Error 2 make[1]: *** [drivers/usb] Error 2 make: *** [drivers] Error 2 This fixes it: Thanks Mirco --- From: Mirco Tischler <mt-ml@gmx.de> Fixes the following compile error caused by commit 3a2d5b700132f35401f1d9e22fe3c2cab02c2549 ... CC [M] drivers/usb/host/u132-hcd.o drivers/usb/host/u132-hcd.c: In function =E2=80=98u132_suspend=E2=80=99: drivers/usb/host/u132-hcd.c:3224: error: expected expression before =E2=80=98int=E2=80=99 drivers/usb/host/u132-hcd.c:3225: error: =E2=80=98ports=E2=80=99 undeclared= (first use in this function) ... Signed-off-by: Mirco Tischler <mt-ml@gmx.de> --- drivers/usb/host/u132-hcd.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index 6fca069..58830b2 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c @@ -3214,6 +3214,7 @@ static int u132_suspend(struct platform_device *pdev, pm_message_t state) return -ESHUTDOWN; } else { int retval =3D 0; + int ports =3D 0; =20 switch (state.event) { case PM_EVENT_FREEZE: @@ -3221,7 +3222,7 @@ static int u132_suspend(struct platform_device *pdev, pm_message_t state) break; case PM_EVENT_SUSPEND: case PM_EVENT_HIBERNATE: - int ports =3D MAX_U132_PORTS; + ports =3D MAX_U132_PORTS; while (ports-- > 0) { port_power(u132, ports, 0); }
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Andi Kleen | [PATCH] [4/50] x86: add cpu codenames for Kconfig.cpu |
| Andi Kleen | [PATCH] [0/45] x86 2.6.24 patches review I |
| Stoyan Gaydarov | From 2.4 to 2.6 to 2.7? |
git: | |
| Jarek Poplawski | Re: HTB accuracy for high speed |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
