]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
chelsio: Fix non-NAPI compile
authorRoland Dreier <rdreier@cisco.com>
Mon, 26 Feb 2007 22:58:49 +0000 (14:58 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 27 Feb 2007 09:27:13 +0000 (04:27 -0500)
Chelsio without NAPI enabled has been broken (won't compile) since
3de00b89 ("chelsio: NAPI speed improvement"):

    drivers/net/chelsio/sge.c: In function `t1_interrupt`:
    drivers/net/chelsio/sge.c:1716: error: `Q` undeclared (first use in this function)

The change below seems to add back in the declaration and
initialization of `Q` that was removed by mistake, and at least makes
the driver compile for me, although I have no hardware and hence no
way to test whether this actually works.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/chelsio/sge.c

index 89a682702fa90a57201a7b4fe463ffa2a6287efe..326d4a6651232ea66e796e7fa083ff5979fe03e6 100644 (file)
@@ -1696,6 +1696,7 @@ irqreturn_t t1_interrupt(int irq, void *cookie)
 {
        int work_done;
        struct adapter *adapter = cookie;
+       struct respQ *Q = &adapter->sge->respQ;
 
        spin_lock(&adapter->async_lock);