Skip to contentSkip to conversation

X86:NET:Replaced a deprecated function .

PATCH In review [email protected] 2 participants 5 messages Apr 4, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 X86:NET:Replaced a deprecated function .

From: Wanlong Gao <[email protected]>

kernel_warning: pcmcia_request_exclusive_irq is deprecated .

---
 drivers/net/pcmcia/nmclan_cs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/pcmcia/nmclan_cs.c +1 -1
index 76683d9..bf97231
@@ -625,7 +625,7 @@ static int nmclan_config(struct pcmcia_device *link)
   ret = pcmcia_request_io(link);
   if (ret)
 	  goto failed;
-  ret = pcmcia_request_exclusive_irq(link, mace_interrupt);
+  ret = __pcmcia_request_exclusive_irq(link, mace_interrupt);
   if (ret)
 	  goto failed;
   ret = pcmcia_enable_device(link);
Signature · 1 line
1.7.3
#1 lore raw
Quoted 3 lines · On Mon, Apr 04, 2011 at 05:32:28PM +0800, [email protected] wrote:

From: Wanlong Gao <[email protected]>

kernel_warning: pcmcia_request_exclusive_irq is deprecated .

NACK. This papers over the issue, instead of fixing it. To properly fix it, one needs to verify that the IRQ handler used in this driver is capable of handling a shared IRQ line.

Best,
Dominik

Quoted 26 lines
---
 drivers/net/pcmcia/nmclan_cs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/pcmcia/nmclan_cs.c +1 -1
index 76683d9..bf97231
@@ -625,7 +625,7 @@ static int nmclan_config(struct pcmcia_device *link)
   ret = pcmcia_request_io(link);
   if (ret)
 	  goto failed;
-  ret = pcmcia_request_exclusive_irq(link, mace_interrupt);
+  ret = __pcmcia_request_exclusive_irq(link, mace_interrupt);
   if (ret)
 	  goto failed;
   ret = pcmcia_enable_device(link);
Signature · 7 lines
1.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#2 lore raw

You means that some drivers still not capable of IRQF_SHARED?

Thanks

#3 lore raw
Quoted 1 line · wanlong.gao

You means that some drivers still not capable of IRQF_SHARED?

That's the issue. I do not know whether this driver is capable of IRQF_SHARED as it should be. If it is, you may replace the pcmcia_request_exclusive_irq() with pcmcia_request_irq(), and the warning will be gone.

Best,
Dominik

#4 lore raw
In reply to wanlong.gao

I see the issue , but it is sorry that I don't know whether it is capable, yes . So just ignore my stupid patch .

Thanks for your comments, and benefited a lot.