problem with sb_card.c in 2.3.27

Thomas Molina (tmolina@home.com)
Fri, 12 Nov 1999 12:15:20 -0600 (CST)


After "fixing" the sb1000 problem mentioned in a previous email I ran
into the following:

/usr/src/linux-2.3.27/include/linux/isapnp.h: In function `isapnp_cfg_begin':
In file included from sb_card.c:20:
/usr/src/linux-2.3.27/include/linux/isapnp.h:158: `ENODEV' undeclared (first use in this function)
/usr/src/linux-2.3.27/include/linux/isapnp.h:158: (Each undeclared identifier is reported only once
/usr/src/linux-2.3.27/include/linux/isapnp.h:158: for each function it appears in.)
/usr/src/linux-2.3.27/include/linux/isapnp.h:158: warning: control reaches end of non-void function
/usr/src/linux-2.3.27/include/linux/isapnp.h: In function `isapnp_cfg_end':
/usr/src/linux-2.3.27/include/linux/isapnp.h:159: `ENODEV' undeclared (first use in this function)
/usr/src/linux-2.3.27/include/linux/isapnp.h:159: warning: control reaches end of non-void function
make[3]: *** [sb_card.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [_subdir_sound] Error 2
make: *** [_dir_drivers] Error 2

HuH??

In any case the following, probably incorrect, patch fixes the problem
with drivers/sound/sb_card.c. Is there a standard place this should go
instead of /usr/src/linux/drivers/sound/sb_card.c?

--- sb_card.c.old Fri Nov 12 11:51:31 1999
+++ sb_card.c Fri Nov 12 12:00:44 1999
@@ -11,6 +11,7 @@
* for more info.
*/

+#include <linux/errno.h>
#include <linux/config.h>
#ifdef CONFIG_MCA
#include <linux/mca.h>

-
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.tux.org/lkml/