* [PATCH] sb1250-mac.c: Fix "stats" references
@ 2007-09-14 12:25 Maciej W. Rozycki
2007-09-20 4:11 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Maciej W. Rozycki @ 2007-09-14 12:25 UTC (permalink / raw)
To: Andrew Morton, Jeff Garzik; +Cc: netdev, linux-mips, linux-kernel
Fix build errors resulting from a recent commit that added references to
"stats" through "dev" from sbdma_rx_process() and sbdma_tx_process(), but
no definitions of that variable.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
---
This is probably the simplest fix possible, though at this point it is of
question whether it is still "struct sbmac_softc *" that should be passed
to these functions. I'll leave it to another occasion though.
Applies under patch-netdev-2.6.23-rc6-20070913-sb1250-mac-typedef-8.
Please apply,
Maciej
patch-netdev-2.6.23-rc6-20070913-sb1250-mac-fix-1
diff -up --recursive --new-file linux-netdev-2.6.23-rc6-20070913.macro/drivers/net/sb1250-mac.c linux-netdev-2.6.23-rc6-20070913/drivers/net/sb1250-mac.c
--- linux-netdev-2.6.23-rc6-20070913.macro/drivers/net/sb1250-mac.c 2007-09-13 17:27:52.000000000 +0000
+++ linux-netdev-2.6.23-rc6-20070913/drivers/net/sb1250-mac.c 2007-09-14 12:06:15.000000000 +0000
@@ -1187,6 +1187,7 @@ static void sbmac_netpoll(struct net_dev
static int sbdma_rx_process(struct sbmac_softc *sc,sbmacdma_t *d,
int work_to_do, int poll)
{
+ struct net_device *dev = sc->sbm_dev;
int curidx;
int hwidx;
sbdmadscr_t *dsc;
@@ -1348,6 +1349,7 @@ done:
static void sbdma_tx_process(struct sbmac_softc *sc,sbmacdma_t *d, int poll)
{
+ struct net_device *dev = sc->sbm_dev;
int curidx;
int hwidx;
sbdmadscr_t *dsc;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-20 4:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 12:25 [PATCH] sb1250-mac.c: Fix "stats" references Maciej W. Rozycki
2007-09-20 4:11 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox