Re: [BUILD FAILURE]2.6.24-git6 build failure on sis190 ethernet driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kamalesh Babulal <kamalesh@...>
Cc: LKML <linux-kernel@...>, <netdev@...>, <romieu@...>, Andy Whitcroft <apw@...>
Date: Wednesday, January 30, 2008 - 1:34 am

On Wed, Jan 30, 2008 at 09:11:36AM +0530, Kamalesh Babulal wrote:

Hi Kamalesh

I know another patch is circulating, but please try the following.
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;

It is the better fix if you can confirm it working.
The section conflict issued by gcc happens because we try to
mix const and non-const data in the same section.

	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUILD FAILURE]2.6.24-git6 build failure on sis190 ethernet ..., Kamalesh Babulal, (Tue Jan 29, 11:41 pm)
Re: [BUILD FAILURE]2.6.24-git6 build failure on sis190 ether..., Sam Ravnborg, (Wed Jan 30, 1:34 am)