All of lore.kernel.org
 help / color / mirror / Atom feed
* [2.5 patch] fix sound/oss/ics2101.c compilation
@ 2003-03-21 20:10 Adrian Bunk
  2003-03-23 18:11 ` Peter Waechtler
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2003-03-21 20:10 UTC (permalink / raw)
  To: pwaechtler; +Cc: linux-kernel

Hi,

it seems your "oss sound cli cleanup" patch that was included into 2.5 
some months ago has caused the following problem:

The final linking of the kernel fails with the following error:

<--  snip  -->

...
sound/built-in.o(.text+0x2dc86): In function `write_mix':
: undefined reference to `lock'
sound/built-in.o(.text+0x2dc91): In function `write_mix':
: undefined reference to `lock'
sound/built-in.o(.text+0x2dcaa): In function `write_mix':
: undefined reference to `lock'
sound/built-in.o(.text+0x2dcb3): In function `write_mix':
: undefined reference to `lock'
sound/built-in.o(.text+0x2dcc7): In function `write_mix':
: undefined reference to `lock'
sound/built-in.o(.text+0x2dcd1): more undefined references to `lock' 
follow
make: *** [.tmp_vmlinux1] Error 1

<--  snip  -->


The following patch fixes the problem for me, please check whether it's 
correct:

--- linux-2.5.65-full/sound/oss/ics2101.c.old	2003-03-21 19:13:23.000000000 +0100
+++ linux-2.5.65-full/sound/oss/ics2101.c	2003-03-21 19:13:53.000000000 +0100
@@ -29,7 +29,7 @@
 
 extern int     *gus_osp;
 extern int      gus_base;
-extern spinlock_t lock;
+spinlock_t      lock = SPIN_LOCK_UNLOCKED;
 static int      volumes[ICS_MIXDEVS];
 static int      left_fix[ICS_MIXDEVS] =
 {1, 1, 1, 2, 1, 2};



TIA
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] 6+ messages in thread

end of thread, other threads:[~2003-03-31 12:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-21 20:10 [2.5 patch] fix sound/oss/ics2101.c compilation Adrian Bunk
2003-03-23 18:11 ` Peter Waechtler
2003-03-30  9:30   ` Adrian Bunk
2003-03-31  0:04     ` Peter Waechtler
2003-03-31 10:05       ` Adrian Bunk
2003-03-31 12:14         ` [2.5 patch] typo fix for compilation Peter Waechtler

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.