linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-wireless@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH][SSB] Fix a warning in PCI core driver
Date: Mon, 13 Aug 2007 02:02:27 +0200	[thread overview]
Message-ID: <200708130202.28030.mb@bu3sch.de> (raw)
In-Reply-To: <20070812235058.GA4966@hall.aurel32.net>

On Monday 13 August 2007 01:50:58 Aurelien Jarno wrote:
> The patch below fixes a warning spotted a few days ago by Andrew Morton
> while releasing 2.6.23-rc2-mm1.
> 
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> 
> --- a/drivers/ssb/driver_pcicore.c
> +++ b/drivers/ssb/driver_pcicore.c
> @@ -278,7 +278,7 @@
>  static struct resource ssb_pcicore_mem_resource = {
>  	.name	= "SSB PCIcore external memory",
>  	.start	= SSB_PCI_DMA,
> -	.end	= SSB_PCI_DMA + SSB_PCI_DMA_SZ - 1,
> +	.end	= (u32)SSB_PCI_DMA + (u32)SSB_PCI_DMA_SZ - 1,
>  	.flags	= IORESOURCE_MEM,
>  };
>  
> 

These casts were intentionally removed by me.
I think they are bogus and I have no idea why this
generates this strange compiler warning (I think it
was some overflow warning?).

-- 
Greetings Michael.

  reply	other threads:[~2007-08-13  0:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-12 23:50 [PATCH][SSB] Fix a warning in PCI core driver Aurelien Jarno
2007-08-13  0:02 ` Michael Buesch [this message]
2007-08-13  0:18   ` Aurelien Jarno
2007-08-13  2:21     ` Michael Buesch
2007-08-13  9:07       ` Aurelien Jarno
2007-08-13 12:18         ` Michael Buesch

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=200708130202.28030.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=akpm@linux-foundation.org \
    --cc=aurelien@aurel32.net \
    --cc=linux-wireless@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 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).