2.1.117: undefined reference to `sb_dsp_init'

Dick Streefland (Dick.Streefland@inter.nl.net)
Sun, 23 Aug 1998 18:10:14 +0200


Hi,

The function sb_dsp_init() was changed to "static" in patch 2.1.117,
although it is (only) called from other modules. As a result, I get
the following link errors:

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'

The fix is simple:

--- linux/drivers/sound/sb_common.c.orig Sat Aug 22 18:37:37 1998
+++ linux/drivers/sound/sb_common.c Sun Aug 23 13:24:17 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];

-- 
Dick Streefland                    ////               De Bilt
dick.streefland@inter.nl.net      (@ @)       The Netherlands
------------------------------oOO--(_)--OOo------------------

- 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