linux-2.1.117 sb_dsp_init fix.

Sang Kang (sang@mocha.dyn.ml.org)
Wed, 19 Aug 1998 23:13:06 -0700 (PDT)


Hello,

I'm getting this error:

drivers/sound/sound.a(sb_card.o): In function `attach_sb_card':
sb_card.o(.text+0x7): undefined reference to `sb_dsp_init'
drivers/sound/sound.a(sb_card.o)(__ksymtab+0x0): undefined reference to `sb_dsp_init'

And I found drivers/sound/sb_common.c line 698, the sb_dsp_init(blah) is
declared as a static function (therefore the scope is limited inside the
sb_common.c). I got rid of the 'static' keyward and everything works.

--- 2.1.117/drivers/sound/sb_common.c Wed Aug 19 14:48:30 1998
+++ linux/drivers/sound/sb_common.c Wed Aug 19 23:02:35 1998
@@ -694,7 +694,7 @@
return 1;
}

-static int sb_dsp_init(struct address_info *hw_config)
+int sb_dsp_init(struct address_info *hw_config)
{
sb_devc *devc;
char name[100];

Sang Woo Kang swk @ acm . org http://kahuna.sdsu.edu/~skang/

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/GCS/GS g+/dpu s++:++ a--/a? C++++ UL/US++++ P++ L+++ E++ W++ N+++ o? K?
w--- O? M-- V(+) PS+++ PE-- Y+ PGP++ t* 5-- X- R-- tv-- b+++ DI++++ D G+++ e
h* !r z+
-----END GEEK CODE BLOCK-----
http://www.geekcode.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html