login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
30
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Sam Ravnborg <sam@...>
To: Jan Engelhardt <jengelh@...>
Cc: Jonas Bonn <jonas@...>, <netdev@...>, <romieu@...>, <linux-kernel@...>
Subject:
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
Date: Wednesday, January 30, 2008 - 7:25 am
On Wed, Jan 30, 2008 at 12:23:23PM +0100, Jan Engelhardt wrote:
quoted text
> > On Jan 30 2008 11:53, Jonas Bonn wrote: > > > >This fixes build error as gcc complains about a "section type conflict" > >due to the const __devinitdata in sis190_get_mac_addr_from_apc(). > > >-static struct pci_device_id sis190_pci_tbl[] __devinitdata = { > >+static const struct pci_device_id sis190_pci_tbl[] __devinitdata = { > > { PCI_DEVICE(PCI_VENDOR_ID_SI, 0x0190), 0, 0, 0 }, > > { PCI_DEVICE(PCI_VENDOR_ID_SI, 0x0191), 0, 0, 1 }, > > { 0, }, > > Eh? Did you mean to > > - static const u16 __devinitdata ids[] = { 0x0965, 0x0966, 0x0968 }; > + static u16 __devinitdata ids[] = { 0x0965, 0x0966, 0x0968 }; > > instead? Because AFAIK, const *and* __sectionmarker does not mix.
We have just introduced __initconst, __cpuinitconst, __meminitconst for const data. So the patch is wrong. Sam --
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:
[PATCH] [SIS190] Constify data marked as __devinitdata
, Jonas Bonn
, (Wed Jan 30, 6:53 am)
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
, Jan Engelhardt
, (Wed Jan 30, 7:23 am)
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
, Jonas Bonn
, (Wed Jan 30, 7:41 am)
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
, Sam Ravnborg
, (Wed Jan 30, 7:25 am)
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
, Jan Engelhardt
, (Wed Jan 30, 9:31 am)
Re: [PATCH] [SIS190] Constify data marked as __devinitdata
, Sam Ravnborg
, (Wed Jan 30, 9:37 am)
[PATCH] [SIS190] Use __devinitconst for const devinit data
, Jonas Bonn
, (Wed Jan 30, 9:41 am)
[PATCH] [SIS190] Use _devinitconst for const data
, Jonas Bonn
, (Wed Jan 30, 7:57 am)
Re: [PATCH] [SIS190] Use _devinitconst for const data
, Sam Ravnborg
, (Wed Jan 30, 8:21 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11209] 2.6.27-rc1 process time accounting
Vitaly V. Bursov
Re: Slow file transfer speeds with CFQ IO scheduler in some cases
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Ian Kent
[PATCH 1/4] autofs4 - check for invalid dentry in getpath
git
:
linux-netdev
:
David Miller
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
976 guests
online.
Online users
zeekec
sreejithc
bridgewayestate
billkid
Syndicate