linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org,
	Lennert Buytenhek <buytenh@wantstofly.org>
Subject: Re: [PATCH] mwl8k: correct/silence sparse warnings
Date: Tue, 20 Jul 2010 20:22:03 +0200	[thread overview]
Message-ID: <1279650123.3706.45.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1279649222-3042-1-git-send-email-linville@tuxdriver.com>

On Tue, 2010-07-20 at 14:07 -0400, John W. Linville wrote:

>  		off = le32_to_cpu(cmd->rxwrptr) & 0xffff;
> -		iowrite32(cpu_to_le32(priv->rxq[0].rxd_dma), priv->sram + off);
> +		iowrite32((__force __u32) cpu_to_le32(priv->rxq[0].rxd_dma),
> +				priv->sram + off);

Those don't seem right, it looks more like somebody thought they needed
to byteswap the iowrite because PCI(e) is little endian, and were wrong?

johannes


  reply	other threads:[~2010-07-20 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20 18:07 [PATCH] mwl8k: correct/silence sparse warnings John W. Linville
2010-07-20 18:22 ` Johannes Berg [this message]
2010-07-20 18:29   ` John W. Linville
2010-07-20 18:39   ` [PATCH v2] " John W. Linville
2010-07-20 18:53     ` Lennert Buytenhek

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=1279650123.3706.45.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=buytenh@wantstofly.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).