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); -
| jmerkey | [ANNOUNCE] Merkey's Kernel Debugger |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Harald Dunkel | 2.6.25.3: su gets stuck for root |
git: | |
| Peter Stahlir | Git as a filesystem |
| Linus Torvalds | Help with a tcl/tk gui thing.. |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Wink Saville | Resolving conflicts |
| Kevin Neff | Patching a SSH 'Weakness' |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Doug Fordham | Re: Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Eric Dumazet | Re: [PATCH] net: implement emergency route cache rebulds when gc_elasticity is exc... |
| Arnaldo Carvalho de Melo | Re: [PATCH 2/6] Phonet: connected sockets glue |
