* [PATCH] staging: octeon-ethernet: Fix compile error caused by changed to struct skb_frag_struct.
@ 2011-11-07 20:49 David Daney
2011-11-09 17:17 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: David Daney @ 2011-11-07 20:49 UTC (permalink / raw)
To: ralf, linux-mips, netdev, gregkh, devel; +Cc: ddaney.cavm, David Daney
Evidently the definition of struct skb_frag_struct has changed, so we
need to change to match it.
Signed-off-by: David Daney <david.daney@cavium.com>
---
drivers/staging/octeon/ethernet-tx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c
index b445cd6..2542c37 100644
--- a/drivers/staging/octeon/ethernet-tx.c
+++ b/drivers/staging/octeon/ethernet-tx.c
@@ -275,7 +275,7 @@ int cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev)
CVM_OCT_SKB_CB(skb)[0] = hw_buffer.u64;
for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
struct skb_frag_struct *fs = skb_shinfo(skb)->frags + i;
- hw_buffer.s.addr = XKPHYS_TO_PHYS((u64)(page_address(fs->page) + fs->page_offset));
+ hw_buffer.s.addr = XKPHYS_TO_PHYS((u64)(page_address(fs->page.p) + fs->page_offset));
hw_buffer.s.size = fs->size;
CVM_OCT_SKB_CB(skb)[i + 1] = hw_buffer.u64;
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: octeon-ethernet: Fix compile error caused by changed to struct skb_frag_struct.
2011-11-07 20:49 [PATCH] staging: octeon-ethernet: Fix compile error caused by changed to struct skb_frag_struct David Daney
@ 2011-11-09 17:17 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2011-11-09 17:17 UTC (permalink / raw)
To: David Daney; +Cc: linux-mips, netdev, gregkh, devel, ddaney.cavm
On Mon, Nov 07, 2011 at 12:49:30PM -0800, David Daney wrote:
> Evidently the definition of struct skb_frag_struct has changed, so we
> need to change to match it.
>
> Signed-off-by: David Daney <david.daney@cavium.com>
> ---
As usual for this drive I've applied this to the MIPS tree and will
send it to Linus in a few days unless somebody objects.
Thanks,
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-09 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 20:49 [PATCH] staging: octeon-ethernet: Fix compile error caused by changed to struct skb_frag_struct David Daney
2011-11-09 17:17 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).