Since the -[p]ac kernel patch series make tty counts atomic, ALSA's 
serialmidi.c fails to compile.

Patch attached; this breaks "normal" kernels though [guess we need a 
configure check for atomic tty->count; I haven't done that yet]

LLaP
bero

-- 
Ark Linux - Linux for the masses
http://www.arklinux.org/

Redistribution and processing of this message is subject to
http://www.arklinux.org/terms.php
--- alsa-driver-0.9.7b/drivers/serialmidi.c.bero        2003-04-15 01:08:41.000000000 
+0200
+++ alsa-driver-0.9.7b/drivers/serialmidi.c     2003-04-15 01:08:52.000000000 +0200
@@ -155,7 +155,7 @@
                retval = -EIO;
                goto __end;
        }
-       if (tty->count > 1) {
+       if (atomic_read(&tty->count) > 1) {
                snd_printk(KERN_ERR "tty %s is already used", serial->sdev);
                retval = -EBUSY;
                goto __end;

Reply via email to