login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
24
Re: Help with compiler warning
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Benny Halevy <bhalevy@...>
To: Larry Finger <Larry.Finger@...>
Cc: LKML <linux-kernel@...>, Dominik Brodowski <linux@...>
Subject:
Re: Help with compiler warning
Date: Sunday, August 24, 2008 - 11:31 am
On Aug. 24, 2008, 18:29 +0300, Benny Halevy <bhalevy@panasas.com> wrote:
quoted text
> On Aug. 22, 2008, 4:36 +0300, Larry Finger <Larry.Finger@lwfinger.net> wrote: >> In drivers/pcmcia/cardbus.c, the following statement >> >> memcpy_fromio(ptr, s->cb_cis_virt + addr, len); >> >> generates the warning >> >> CC [M] drivers/pcmcia/cardbus.o >> include/asm/io_32.h: In function ‘memcpy_fromio’: >> include/asm/io_32.h:151: warning: passing argument 2 of ‘__memcpy’ >> discards qualifiers from pointer target type >> >> s->cb_cis_virt is "void __iomem" and addr is uint. >> >> What cast does argument 2 need to silence the warning? > > memcpy_fromio takes a (const volatile void __iomem *) for the > src address.
So the culprit could be the volatile qualifier...
quoted text
> > Benny > >> Thanks, >> >> Larry >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >> the body of a message to
majordomo@vger.kernel.org
>> More majordomo info at
http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at
http://www.tux.org/lkml/
>
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Help with compiler warning
, Larry Finger
, (Thu Aug 21, 9:36 pm)
Re: Help with compiler warning
, Benny Halevy
, (Sun Aug 24, 11:29 am)
Re: Help with compiler warning
, Benny Halevy
, (Sun Aug 24, 11:31 am)
Re: Help with compiler warning
, Larry Finger
, (Sun Aug 24, 11:50 am)
Re: Help with compiler warning
, Andreas Schwab
, (Sun Aug 24, 12:32 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 006/196] Chinese: add translation of oops-tracing.txt
Luciano Rocha
usb hdd problems with 2.6.27.2
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
520 guests
online.
Online users
strcmp
Syndicate