From: Tony Lindgren <tony@atomide.com>
To: Trilok Soni <soni.trilok@gmail.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] IrDA: Fix omap-ir build
Date: Tue, 8 May 2007 14:38:55 -0700 [thread overview]
Message-ID: <20070508213855.GK32547@atomide.com> (raw)
In-Reply-To: <5d5443650705080041l5082ac73jd69ed20bfbb185e8@mail.gmail.com>
* Trilok Soni <soni.trilok@gmail.com> [070508 00:41]:
> Tony,
>
> Attached patch fixes omap-ir build.
>
> --
> --Trilok Soni
> From 3e6d5cad52aac28ff88baa62943600e4b490dfc6 Mon Sep 17 00:00:00 2001
> From: Trilok Soni <soni.trilok@gmail.com>
> Date: Tue, 8 May 2007 18:40:54 +0530
> Subject: [PATCH] IrDA: Fix omap-ir build
>
> - use new skb_reset_mac_header and
> skb_copy_from_linear_data functions.
>
> Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
> ---
> drivers/net/irda/omap-ir.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/irda/omap-ir.c b/drivers/net/irda/omap-ir.c
> index 85658dc..1fc8c31 100644
> --- a/drivers/net/irda/omap-ir.c
> +++ b/drivers/net/irda/omap-ir.c
> @@ -395,7 +395,7 @@ omap_irda_irq(int irq, void *dev_id)
> w - 4);
>
> skb->dev = dev;
> - skb->mac.raw = skb->data;
> + skb_reset_mac_header(skb);
> skb->protocol = htons(ETH_P_IRDA);
> omap_ir->stats.rx_packets++;
> omap_ir->stats.rx_bytes += skb->len;
> @@ -444,7 +444,7 @@ static int omap_irda_hard_xmit(struct sk_buff *skb, struct net_device *dev)
> netif_stop_queue(dev);
>
> /* Copy skb data to DMA buffer */
> - memcpy(omap_ir->tx_buf_dma_virt, skb->data, skb->len);
> + skb_copy_from_linear_data(skb, omap_ir->tx_buf_dma_virt, skb->len);
>
> /* Copy skb data to DMA buffer */
> omap_ir->stats.tx_bytes += skb->len;
> --
> 1.5.0
Thanks, pushing today.
Tony
prev parent reply other threads:[~2007-05-08 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-08 7:41 [PATCH] IrDA: Fix omap-ir build Trilok Soni
2007-05-08 21:38 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070508213855.GK32547@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=soni.trilok@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox