From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francois Romieu Subject: Re: [PATCH] sis190: fix compile error section type conflict Date: Sat, 2 Feb 2008 15:34:58 +0100 Message-ID: <20080202143458.GA27978@electric-eye.fr.zoreil.com> References: <47A3FF3F.1040908@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, LKML , jgarzik@pobox.com, Sam Ravnborg To: Li Zefan Return-path: Content-Disposition: inline In-Reply-To: <47A3FF3F.1040908@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Li Zefan : > Fix the following compile error: I am not sure that it is the right fix. Please read the archive of this week on l-k. I'll submit the patch below to Jeff once I have tested it with real hardware (sunday evening entertainment). Sam, is it ok to add your s-o-b to it ? Subject: [PATCH] sis190: fix section type conflict The driver already contains __devinitdata which is not const. Signed-off-by: Sam Ravnborg Signed-off-by: Francois Romieu Cc: Michael D. Setzer II Cc: Gabriel C Cc: Jonas Bonn Cc: Jan Engelhardt Cc: Li Zefan --- drivers/net/sis190.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index b570402..0a5e024 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c @@ -1556,7 +1556,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev, static int __devinit sis190_get_mac_addr_from_apc(struct pci_dev *pdev, struct net_device *dev) { - static const u16 __devinitdata ids[] = { 0x0965, 0x0966, 0x0968 }; + static const u16 __devinitconst ids[] = { 0x0965, 0x0966, 0x0968 }; struct sis190_private *tp = netdev_priv(dev); struct pci_dev *isa_bridge; u8 reg, tmp8; -- 1.5.3.3