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:29 am
On Aug. 22, 2008, 4:36 +0300, Larry Finger <Larry.Finger@lwfinger.net> wrote:
quoted text
> 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. Benny
quoted text
> > 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
:
Faik Uygur
Re: Linux 2.6.21-rc1
pageexec
Re: [stable] Linux 2.6.25.10
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
Natalie Protasevich
[BUG] New Kernel Bugs
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
865 guests
online.
Online users
strcmp
summerspring
floodcleaningc
seolondonbcrlox
donnamarie007
Kedar Sovani
aussienewlin
officetoynerd
powerplatecdho
autoinsurancsd
summerspring
Syndicate