Skip to contentSkip to conversation

net: fix smc91x build for sh/ppc

PATCH In review Paul Mundt 3 participants 3 messages Oct 12, 2004 – Oct 13, 2004 Network drivers

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 net: fix smc91x build for sh/ppc

The current smc91x code uses set_irq_type(). It looks like the m32r guys worked around this by adding a !defined(__m32r__) check, but this is equally bogus as set_irq_type() is an arm/arm26-specific function.

Trying to get this to build on sh died in the same spot, so we just back out the m32r change and make it depend on CONFIG_ARM instead. Notably, the ppc build would have been broken by this as well, but it doesn't seem like anyone noticed this there yet.

 drivers/net/smc91x.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

===== drivers/net/smc91x.c 1.7 vs edited =====

drivers/net/smc91x.c +1 -1
@@ -1885,7 +1885,7 @@
       	if (retval)
       		goto err_out;
 
-#if !defined(__m32r__)
+#ifdef CONFIG_ARM
 	set_irq_type(dev->irq, IRQT_RISING);
 #endif
 #ifdef SMC_USE_PXA_DMA
#1 lore raw
Quoted 8 lines · Paul Mundt

The current smc91x code uses set_irq_type(). It looks like the m32r guys worked around this by adding a !defined(__m32r__) check, but this is equally bogus as set_irq_type() is an arm/arm26-specific function.

Trying to get this to build on sh died in the same spot, so we just back out the m32r change and make it depend on CONFIG_ARM instead. Notably, the ppc build would have been broken by this as well, but it doesn't seem like anyone noticed this there yet.

I previously suggested that architectures without set_irq_type() define it as an empty macro, but if only ARM has that function it's probably saner to just enable it for ARM as you did.

Nicolas

#2 lore raw
In reply to Paul Mundt

Hello, Paul,

OK. I agree with you.

From: Paul Mundt <[email protected]>
Subject: [PATCH] net: fix smc91x build for sh/ppc
Date: Tue, 12 Oct 2004 19:16:32 +0300

Quoted 18 lines

The current smc91x code uses set_irq_type(). It looks like the m32r guys worked around this by adding a !defined(__m32r__) check, but this is equally bogus as set_irq_type() is an arm/arm26-specific function.

Trying to get this to build on sh died in the same spot, so we just back out the m32r change and make it depend on CONFIG_ARM instead. Notably, the ppc build would have been broken by this as well, but it doesn't seem like anyone noticed this there yet.

 drivers/net/smc91x.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

===== drivers/net/smc91x.c 1.7 vs edited =====

drivers/net/smc91x.c line 1891

Quoted 8 lines
drivers/net/smc91x.c +1 -1
@@ -1885,7 +1885,7 @@
       	if (retval)
       		goto err_out;
 
-#if !defined(__m32r__)
+#ifdef CONFIG_ARM
 	set_irq_type(dev->irq, IRQT_RISING);
 #endif
 #ifdef SMC_USE_PXA_DMA

-- Takata