All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: jeff@garzik.org, netdev@vger.kernel.org,
	Jesse Brandeburg <jesse.brandeburg@intel.com>
Subject: Re: [PATCH] sky2: fix simple define thinko
Date: Tue, 6 May 2008 16:18:43 -0700	[thread overview]
Message-ID: <20080506161843.46a8eb83@extreme> (raw)
In-Reply-To: <20080506213435.25259.83781.stgit@jbrandeb-ich9b.jf.intel.com>

On Tue, 06 May 2008 14:34:35 -0700
Jesse Brandeburg <jesse.brandeburg@intel.com> wrote:

> noticed while browsing code, apparent thinko.  compile tested only.
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> CC: Stephen Hemminger <shemminger@linux-foundation.org>
> ---
> 
>  drivers/net/sky2.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> 
> diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
> index 7bb3ba9..c0a5eea 100644
> --- a/drivers/net/sky2.h
> +++ b/drivers/net/sky2.h
> @@ -1966,13 +1966,13 @@ struct sky2_status_le {
>  struct tx_ring_info {
>  	struct sk_buff	*skb;
>  	DECLARE_PCI_UNMAP_ADDR(mapaddr);
> -	DECLARE_PCI_UNMAP_ADDR(maplen);
> +	DECLARE_PCI_UNMAP_LEN(maplen);
>  };
>  
>  struct rx_ring_info {
>  	struct sk_buff	*skb;
>  	dma_addr_t	data_addr;
> -	DECLARE_PCI_UNMAP_ADDR(data_size);
> +	DECLARE_PCI_UNMAP_LEN(data_size);
>  	dma_addr_t	frag_addr[ETH_JUMBO_MTU >> PAGE_SHIFT];
>  };
>  
> 

Yes, this looks okay. We were safe up till now because ADDR > LEN

  reply	other threads:[~2008-05-06 23:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06 21:34 [PATCH] sky2: fix simple define thinko Jesse Brandeburg
2008-05-06 23:18 ` Stephen Hemminger [this message]
2008-05-13  5:17 ` Jeff Garzik

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=20080506161843.46a8eb83@extreme \
    --to=shemminger@linux-foundation.org \
    --cc=jeff@garzik.org \
    --cc=jesse.brandeburg@intel.com \
    --cc=netdev@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.