netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.9-mm1: pc_debug multiple definitions
       [not found] <20041022032039.730eb226.akpm@osdl.org>
@ 2004-10-22 13:39 ` Adrian Bunk
  2004-10-22 23:07   ` Russell King
  2004-10-24  3:41   ` Luis R. Rodriguez
  0 siblings, 2 replies; 5+ messages in thread
From: Adrian Bunk @ 2004-10-22 13:39 UTC (permalink / raw)
  To: Andrew Morton, David Hinds
  Cc: linux-kernel, jgarzik, linux-net, prism54-private, netdev


The following compile error comes from Linus' tree:


<--  snip  -->

...
  LD      drivers/built-in.o
drivers/pcmcia/built-in.o(.bss+0xf20): multiple definition of `pc_debug'
drivers/net/built-in.o(.data+0x24ae0): first defined here
make[1]: *** [drivers/built-in.o] Error 1

<--  snip  -->


The pc_debug in drivers/pcmcia/ds.c was made non-static in Linus' tree,
but the global definition of a global variable with such a generic name 
in drivers/net/wireless/prism54/islpci_mgt.c seems to be equally wrong.


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: 2.6.9-mm1: pc_debug multiple definitions
  2004-10-22 13:39 ` 2.6.9-mm1: pc_debug multiple definitions Adrian Bunk
@ 2004-10-22 23:07   ` Russell King
  2004-10-24  3:41   ` Luis R. Rodriguez
  1 sibling, 0 replies; 5+ messages in thread
From: Russell King @ 2004-10-22 23:07 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: Andrew Morton, linux-kernel, jgarzik, linux-net, prism54-private,
	netdev

On Fri, Oct 22, 2004 at 03:39:29PM +0200, Adrian Bunk wrote:
> 
> The following compile error comes from Linus' tree:
> 
> 
> <--  snip  -->
> 
> ...
>   LD      drivers/built-in.o
> drivers/pcmcia/built-in.o(.bss+0xf20): multiple definition of `pc_debug'
> drivers/net/built-in.o(.data+0x24ae0): first defined here
> make[1]: *** [drivers/built-in.o] Error 1
> 
> <--  snip  -->
> 
> 
> The pc_debug in drivers/pcmcia/ds.c was made non-static in Linus' tree,
> but the global definition of a global variable with such a generic name 
> in drivers/net/wireless/prism54/islpci_mgt.c seems to be equally wrong.

I've forwarded it to Dominik to sort out with suggested solutions.
Hopefully Dominik will forward a fix soon.

(PS, I dropped David Hinds from the CC list - David doesn't maintain
2.6 PCMCIA.)

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core

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

* Re: 2.6.9-mm1: pc_debug multiple definitions
  2004-10-22 13:39 ` 2.6.9-mm1: pc_debug multiple definitions Adrian Bunk
  2004-10-22 23:07   ` Russell King
@ 2004-10-24  3:41   ` Luis R. Rodriguez
  2004-10-24  9:33     ` Adrian Bunk
  1 sibling, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2004-10-24  3:41 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: Andrew Morton, netdev, prism54-devel, linux-kernel, linux-net,
	David Hinds, jgarzik

On Fri, Oct 22, 2004 at 03:39:29PM +0200, Adrian Bunk wrote:
> 
> The following compile error comes from Linus' tree:
> 
> 
> <--  snip  -->
> 
> ...
>   LD      drivers/built-in.o
> drivers/pcmcia/built-in.o(.bss+0xf20): multiple definition of `pc_debug'
> drivers/net/built-in.o(.data+0x24ae0): first defined here
> make[1]: *** [drivers/built-in.o] Error 1
> 
> <--  snip  -->
> 
> 
> The pc_debug in drivers/pcmcia/ds.c was made non-static in Linus' tree,
> but the global definition of a global variable with such a generic name 
> in drivers/net/wireless/prism54/islpci_mgt.c seems to be equally wrong.

Great, anyone know why this change was done on ds.c ? The pc_debug on
prism54 comes from the original Intersil driver. It is used to for
debugging but we should move away from our current debugging mechanism
to netif_msg.

Margit, do you have some pending commits left? Do you want to take a
stab at this? If not I can later on this week.

	Luis

-- 
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84  A34A 6ADD 4937 E20A 525E

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

* Re: 2.6.9-mm1: pc_debug multiple definitions
  2004-10-24  3:41   ` Luis R. Rodriguez
@ 2004-10-24  9:33     ` Adrian Bunk
  2004-10-24 10:05       ` Luis R. Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2004-10-24  9:33 UTC (permalink / raw)
  To: Andrew Morton, David Hinds, linux-kernel, jgarzik, linux-net,
	prism54-devel, netdev

On Sat, Oct 23, 2004 at 11:41:52PM -0400, Luis R. Rodriguez wrote:
> On Fri, Oct 22, 2004 at 03:39:29PM +0200, Adrian Bunk wrote:
> > 
> > The following compile error comes from Linus' tree:
> > 
> > 
> > <--  snip  -->
> > 
> > ...
> >   LD      drivers/built-in.o
> > drivers/pcmcia/built-in.o(.bss+0xf20): multiple definition of `pc_debug'
> > drivers/net/built-in.o(.data+0x24ae0): first defined here
> > make[1]: *** [drivers/built-in.o] Error 1
> > 
> > <--  snip  -->
> > 
> > 
> > The pc_debug in drivers/pcmcia/ds.c was made non-static in Linus' tree,
> > but the global definition of a global variable with such a generic name 
> > in drivers/net/wireless/prism54/islpci_mgt.c seems to be equally wrong.
> 
> Great, anyone know why this change was done on ds.c ? The pc_debug on
> prism54 comes from the original Intersil driver. It is used to for
> debugging but we should move away from our current debugging mechanism
> to netif_msg.
>...

pc_debug is a pretty generic name - it seems too generic in both files.

In prism54, couldn't it be called prism54_pc_debug?

> 	Luis

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: 2.6.9-mm1: pc_debug multiple definitions
  2004-10-24  9:33     ` Adrian Bunk
@ 2004-10-24 10:05       ` Luis R. Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2004-10-24 10:05 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: Andrew Morton, netdev, prism54-devel, linux-kernel, linux-net,
	David Hinds, jgarzik

On Sun, Oct 24, 2004 at 11:33:40AM +0200, Adrian Bunk wrote:
> On Sat, Oct 23, 2004 at 11:41:52PM -0400, Luis R. Rodriguez wrote:
> > On Fri, Oct 22, 2004 at 03:39:29PM +0200, Adrian Bunk wrote:
> > > 
> > > The following compile error comes from Linus' tree:
> > > 
> > > 
> > > <--  snip  -->
> > > 
> > > ...
> > >   LD      drivers/built-in.o
> > > drivers/pcmcia/built-in.o(.bss+0xf20): multiple definition of `pc_debug'
> > > drivers/net/built-in.o(.data+0x24ae0): first defined here
> > > make[1]: *** [drivers/built-in.o] Error 1
> > > 
> > > <--  snip  -->
> > > 
> > > 
> > > The pc_debug in drivers/pcmcia/ds.c was made non-static in Linus' tree,
> > > but the global definition of a global variable with such a generic name 
> > > in drivers/net/wireless/prism54/islpci_mgt.c seems to be equally wrong.
> > 
> > Great, anyone know why this change was done on ds.c ? The pc_debug on
> > prism54 comes from the original Intersil driver. It is used to for
> > debugging but we should move away from our current debugging mechanism
> > to netif_msg.
> >...
> 
> pc_debug is a pretty generic name - it seems too generic in both files.
> 
> In prism54, couldn't it be called prism54_pc_debug?

Sure although that's doing a half ass job. It'll fix your compile
problems for sure but ideally we should move away from the old debug
mechanisms that came with the driver originally. We do this by moving to
to netif_msg.

	Luis

-- 
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84  A34A 6ADD 4937 E20A 525E

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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20041022032039.730eb226.akpm@osdl.org>
2004-10-22 13:39 ` 2.6.9-mm1: pc_debug multiple definitions Adrian Bunk
2004-10-22 23:07   ` Russell King
2004-10-24  3:41   ` Luis R. Rodriguez
2004-10-24  9:33     ` Adrian Bunk
2004-10-24 10:05       ` Luis R. Rodriguez

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).