netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] X86:NET:Replaced a deprecated function .
@ 2011-04-04  9:32 wanlong.gao
  2011-04-04  9:36 ` Dominik Brodowski
  0 siblings, 1 reply; 5+ messages in thread
From: wanlong.gao @ 2011-04-04  9:32 UTC (permalink / raw)
  To: linux, davem, padovan, joe, marcel; +Cc: netdev, linux-kernel, Wanlong Gao

From: Wanlong Gao <wanlong.gao@gmail.com>

kernel_warning: pcmcia_request_exclusive_irq is deprecated .

Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
---
 drivers/net/pcmcia/nmclan_cs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c
index 76683d9..bf97231
--- a/drivers/net/pcmcia/nmclan_cs.c
+++ b/drivers/net/pcmcia/nmclan_cs.c
@@ -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);
-- 
1.7.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] X86:NET:Replaced a deprecated function .
  2011-04-04  9:32 [PATCH] X86:NET:Replaced a deprecated function wanlong.gao
@ 2011-04-04  9:36 ` Dominik Brodowski
  2011-04-04  9:44   ` wanlong.gao
  0 siblings, 1 reply; 5+ messages in thread
From: Dominik Brodowski @ 2011-04-04  9:36 UTC (permalink / raw)
  To: wanlong.gao; +Cc: davem, padovan, joe, marcel, netdev, linux-kernel


On Mon, Apr 04, 2011 at 05:32:28PM +0800, wanlong.gao@gmail.com wrote:
> From: Wanlong Gao <wanlong.gao@gmail.com>
> 
> 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

> Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
> ---
>  drivers/net/pcmcia/nmclan_cs.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c
> index 76683d9..bf97231
> --- a/drivers/net/pcmcia/nmclan_cs.c
> +++ b/drivers/net/pcmcia/nmclan_cs.c
> @@ -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);
> -- 
> 1.7.3
> 
> --
> 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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [PATCH] X86:NET:Replaced a deprecated function .
  2011-04-04  9:36 ` Dominik Brodowski
@ 2011-04-04  9:44   ` wanlong.gao
  2011-04-04  9:53     ` Dominik Brodowski
  2011-04-04 10:05     ` wanlong.gao
  0 siblings, 2 replies; 5+ messages in thread
From: wanlong.gao @ 2011-04-04  9:44 UTC (permalink / raw)
  To: Dominik Brodowski; +Cc: davem, padovan, joe, marcel, netdev, linux-kernel

You means that some drivers still not capable of IRQF_SHARED?

Thanks 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [PATCH] X86:NET:Replaced a deprecated function .
  2011-04-04  9:44   ` wanlong.gao
@ 2011-04-04  9:53     ` Dominik Brodowski
  2011-04-04 10:05     ` wanlong.gao
  1 sibling, 0 replies; 5+ messages in thread
From: Dominik Brodowski @ 2011-04-04  9:53 UTC (permalink / raw)
  To: wanlong.gao; +Cc: davem, padovan, joe, marcel, netdev, linux-kernel

On Mon, Apr 04, 2011 at 05:44:00PM +0800, wanlong.gao wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Re: [PATCH] X86:NET:Replaced a deprecated function .
  2011-04-04  9:44   ` wanlong.gao
  2011-04-04  9:53     ` Dominik Brodowski
@ 2011-04-04 10:05     ` wanlong.gao
  1 sibling, 0 replies; 5+ messages in thread
From: wanlong.gao @ 2011-04-04 10:05 UTC (permalink / raw)
  To: Dominik Brodowski; +Cc: davem, padovan, joe, marcel, netdev, linux-kernel

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-04 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04  9:32 [PATCH] X86:NET:Replaced a deprecated function wanlong.gao
2011-04-04  9:36 ` Dominik Brodowski
2011-04-04  9:44   ` wanlong.gao
2011-04-04  9:53     ` Dominik Brodowski
2011-04-04 10:05     ` wanlong.gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).