All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Broken ArcNet com20020 pcmcia driver in 2.6.20
@ 2007-02-07 14:16 Esben Nielsen
  2007-02-07 16:50 ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Esben Nielsen @ 2007-02-07 14:16 UTC (permalink / raw)
  To: Randy Dunlap, Jeff Garzik, Andrew Morton; +Cc: linux-kernel, linux-net

Hi,
  I can not get my com20020 pcmcia driver to work as a module under 2.6.20.
There is the build problem:

MODPOST 30 modules
WARNING: "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
WARNING: "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!

The solution:
Always export com20020_found and com20020_check.

Esben

  drivers/net/arcnet/com20020.c |    3 ---
  1 file changed, 3 deletions(-)

Index: linux-2.6.20/drivers/net/arcnet/com20020.c
===================================================================
--- linux-2.6.20.orig/drivers/net/arcnet/com20020.c
+++ linux-2.6.20/drivers/net/arcnet/com20020.c
@@ -337,11 +337,8 @@ static void com20020_set_mc_list(struct
  	}
  }

-#if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \
-    defined(CONFIG_ARCNET_COM20020_ISA_MODULE)
  EXPORT_SYMBOL(com20020_check);
  EXPORT_SYMBOL(com20020_found);
-#endif

  MODULE_LICENSE("GPL");




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

* Re: [PATCH] Broken ArcNet com20020 pcmcia driver in 2.6.20
  2007-02-07 14:16 [PATCH] Broken ArcNet com20020 pcmcia driver in 2.6.20 Esben Nielsen
@ 2007-02-07 16:50 ` Randy Dunlap
  2007-02-07 22:24   ` Esben Nielsen
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2007-02-07 16:50 UTC (permalink / raw)
  To: Esben Nielsen; +Cc: Jeff Garzik, Andrew Morton, linux-kernel, linux-net

Esben Nielsen wrote:
> Hi,
>  I can not get my com20020 pcmcia driver to work as a module under 2.6.20.
> There is the build problem:

Please send me your .config file.  I can't seem to reproduce this.

> MODPOST 30 modules
> WARNING: "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
> WARNING: "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!
> 
> The solution:
> Always export com20020_found and com20020_check.
> 
> Esben
> 
>  drivers/net/arcnet/com20020.c |    3 ---
>  1 file changed, 3 deletions(-)
> 
> Index: linux-2.6.20/drivers/net/arcnet/com20020.c
> ===================================================================
> --- linux-2.6.20.orig/drivers/net/arcnet/com20020.c
> +++ linux-2.6.20/drivers/net/arcnet/com20020.c
> @@ -337,11 +337,8 @@ static void com20020_set_mc_list(struct
>      }
>  }
> 
> -#if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \
> -    defined(CONFIG_ARCNET_COM20020_ISA_MODULE)
>  EXPORT_SYMBOL(com20020_check);
>  EXPORT_SYMBOL(com20020_found);
> -#endif
> 
>  MODULE_LICENSE("GPL");

-- 
~Randy

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

* Re: [PATCH] Broken ArcNet com20020 pcmcia driver in 2.6.20
  2007-02-07 16:50 ` Randy Dunlap
@ 2007-02-07 22:24   ` Esben Nielsen
  2007-02-07 22:58     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Esben Nielsen @ 2007-02-07 22:24 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Esben Nielsen, Jeff Garzik, Andrew Morton, linux-kernel, linux-net



On Wed, 7 Feb 2007, Randy Dunlap wrote:

> Esben Nielsen wrote:
>>  Hi,
>>  I can not get my com20020 pcmcia driver to work as a module under 2.6.20.
>>  There is the build problem:
>
> Please send me your .config file.  I can't seem to reproduce this.

The relevant parts:
...
CONFIG_ARCNET_COM20020=m
# CONFIG_ARCNET_COM20020_ISA is not set
# CONFIG_ARCNET_COM20020_PCI is not set
...
CONFIG_ARCNET_COM20020_CS=m

In this hiracy it is not nice for the com20020 module to check wether 
there are users for it. It breaks the direction of dependency. What if I 
first compile com20020 install it, and then decide I want one of the other
modules? Then would I have to recompile com20020 and reload it.
Therefore: Remove the check, do always export the symbols.

As for actually testing: I have access to ArcNet hardware for 3 more 
weeks. Then I will start at a new job, where there is no ArcNet.

Esben

>
>>  MODPOST 30 modules
>> WARNING:  "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
>> WARNING:  "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!
>>
>>  The solution:
>>  Always export com20020_found and com20020_check.
>>
>>  Esben
>>
>>   drivers/net/arcnet/com20020.c |    3 ---
>>   1 file changed, 3 deletions(-)
>>
>>  Index: linux-2.6.20/drivers/net/arcnet/com20020.c
>>  ===================================================================
>>  --- linux-2.6.20.orig/drivers/net/arcnet/com20020.c
>>  +++ linux-2.6.20/drivers/net/arcnet/com20020.c
>>  @@ -337,11 +337,8 @@ static void com20020_set_mc_list(struct
>>       }
>>   }
>>
>>  -#if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \
>>  -    defined(CONFIG_ARCNET_COM20020_ISA_MODULE)
>>   EXPORT_SYMBOL(com20020_check);
>>   EXPORT_SYMBOL(com20020_found);
>>  -#endif
>>
>>   MODULE_LICENSE("GPL");
>
> -- 
> ~ Randy
>

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

* Re: [PATCH] Broken ArcNet com20020 pcmcia driver in 2.6.20
  2007-02-07 22:24   ` Esben Nielsen
@ 2007-02-07 22:58     ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2007-02-07 22:58 UTC (permalink / raw)
  To: Esben Nielsen; +Cc: Jeff Garzik, Andrew Morton, linux-kernel, netdev

On Wed, 7 Feb 2007 23:24:21 +0100 (CET) Esben Nielsen wrote:

> On Wed, 7 Feb 2007, Randy Dunlap wrote:
> 
> > Esben Nielsen wrote:
> >>  Hi,
> >>  I can not get my com20020 pcmcia driver to work as a module under 2.6.20.
> >>  There is the build problem:
> >
> The relevant parts:
> ...
> CONFIG_ARCNET_COM20020=m
> # CONFIG_ARCNET_COM20020_ISA is not set
> # CONFIG_ARCNET_COM20020_PCI is not set
> ...
> CONFIG_ARCNET_COM20020_CS=m

Sorry about that.

> In this hiracy it is not nice for the com20020 module to check wether 
> there are users for it. It breaks the direction of dependency. What if I 
> first compile com20020 install it, and then decide I want one of the other
> modules? Then would I have to recompile com20020 and reload it.
> Therefore: Remove the check, do always export the symbols.

That's not the usual kernel way, but I'll leave it up to the netdev
people.  (and net mailing list changed from linux-net to netdev)

An alternative patch is below.
Thanks for your report and patch.


> As for actually testing: I have access to ArcNet hardware for 3 more 
> weeks. Then I will start at a new job, where there is no ArcNet.

> >> WARNING:  "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
> >> WARNING:  "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!
> >>
> >>  The solution:
> >>  Always export com20020_found and com20020_check.
> >>
> >>  Esben
> >>
> >>   drivers/net/arcnet/com20020.c |    3 ---
> >>   1 file changed, 3 deletions(-)
> >>
> >>  Index: linux-2.6.20/drivers/net/arcnet/com20020.c
> >>  ===================================================================
> >>  --- linux-2.6.20.orig/drivers/net/arcnet/com20020.c
> >>  +++ linux-2.6.20/drivers/net/arcnet/com20020.c
> >>  @@ -337,11 +337,8 @@ static void com20020_set_mc_list(struct
> >>       }
> >>   }
> >>
> >>  -#if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \
> >>  -    defined(CONFIG_ARCNET_COM20020_ISA_MODULE)
> >>   EXPORT_SYMBOL(com20020_check);
> >>   EXPORT_SYMBOL(com20020_found);
> >>  -#endif
> >>
> >>   MODULE_LICENSE("GPL");
---


From: Randy Dunlap <randy.dunlap@oracle.com>

Need to export com20020 symbols for com20020_cs also.

WARNING:  "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
WARNING:  "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/net/arcnet/com20020.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2620-work.orig/drivers/net/arcnet/com20020.c
+++ linux-2620-work/drivers/net/arcnet/com20020.c
@@ -338,7 +338,8 @@ static void com20020_set_mc_list(struct 
 }
 
 #if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \
-    defined(CONFIG_ARCNET_COM20020_ISA_MODULE)
+    defined(CONFIG_ARCNET_COM20020_ISA_MODULE) || \
+    defined(CONFIG_ARCNET_COM20020_CS_MODULE)
 EXPORT_SYMBOL(com20020_check);
 EXPORT_SYMBOL(com20020_found);
 #endif


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

end of thread, other threads:[~2007-02-07 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-07 14:16 [PATCH] Broken ArcNet com20020 pcmcia driver in 2.6.20 Esben Nielsen
2007-02-07 16:50 ` Randy Dunlap
2007-02-07 22:24   ` Esben Nielsen
2007-02-07 22:58     ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.