On Thu, 20 Sep 2007, Satyam Sharma wrote:[PATCH -mm] pasemi_mac: Build fix after recent netdev stats changes Unbreak the following: drivers/net/pasemi_mac.c: In function 'pasemi_mac_clean_rx': drivers/net/pasemi_mac.c:533: error: 'dev' undeclared (first use in this function) drivers/net/pasemi_mac.c:533: error: (Each undeclared identifier is reported only once drivers/net/pasemi_mac.c:533: error: for each function it appears in.) And remove an unused static function: drivers/net/pasemi_mac.c: At top level: drivers/net/pasemi_mac.c:89: warning: 'read_iob_reg' defined but not used Signed-off-by: Satyam Sharma <satyam@infradead.org> --- drivers/net/pasemi_mac.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff -ruNp a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c --- a/drivers/net/pasemi_mac.c 2007-09-22 06:26:39.000000000 +0530 +++ b/drivers/net/pasemi_mac.c 2007-09-22 13:03:04.000000000 +0530 @@ -85,11 +85,6 @@ MODULE_PARM_DESC(debug, "PA Semi MAC bit static struct pasdma_status *dma_status; -static unsigned int read_iob_reg(struct pasemi_mac *mac, unsigned int reg) -{ - return in_le32(mac->iob_regs+reg); -} - static void write_iob_reg(struct pasemi_mac *mac, unsigned int reg, unsigned int val) { @@ -530,8 +525,8 @@ static int pasemi_mac_clean_rx(struct pa } else skb->ip_summed = CHECKSUM_NONE; - dev->stats.rx_bytes += len; - dev->stats.rx_packets++; + mac->netdev->stats.rx_bytes += len; + mac->netdev->stats.rx_packets++; skb->protocol = eth_type_trans(skb, mac->netdev); netif_receive_skb(skb); -
| Ingo Molnar | Re: x86: 4kstacks default |
| Stephen Rothwell | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Rafael J. Wysocki | [Bug #10919] [regression] display dimming is slow and laggy - Acer Travelmate 661lci |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
