[PATCH] compile pc_key.c

From: Marcus Grando (marcus@big.univali.br)
Date: Thu Nov 29 2001 - 12:45:35 EST


        Hi,

        After apply the patch-2.5.1-pre3 occur this errors:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.x/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o pc_keyb.o pc_keyb.c
pc_keyb.c:423:71: macro "spin_unlock" passed 2 arguments, but takes just 1
pc_keyb.c: In function `pckbd_pm_resume':
pc_keyb.c:423: `spin_unlock' undeclared (first use in this function)
pc_keyb.c:423: (Each undeclared identifier is reported only once
pc_keyb.c:423: for each function it appears in.)
pc_keyb.c:1059:57: macro "spin_unlock_irqrestore" requires 2 arguments, but only 1 given
pc_keyb.c:1079:57: macro "spin_unlock_irqrestore" requires 2 arguments, but only 1 given
pc_keyb.c: In function `release_aux':
pc_keyb.c:1059: `spin_unlock_irqrestore' undeclared (first use in this function)
pc_keyb.c: In function `open_aux':
pc_keyb.c:1079: `spin_unlock_irqrestore' undeclared (first use in this function)
make[3]: *** [pc_keyb.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.x/drivers/char'

        Fix:

--- v2.5.1-pre3/drivers/char/pc_keyb.c Thu Nov 29 15:43:16 2001
+++ linux/drivers/char/pc_keyb.c Thu Nov 29 15:26:13 2001
@@ -420,7 +420,7 @@
                               kbd_write_command(KBD_CCMD_WRITE_MODE);
                               kb_wait();
                               kbd_write_output(AUX_INTS_OFF);
- spin_unlock(&kbd_controller_lock, flags);
+ spin_unlock(&kbd_controller_lock);
                       }
                       spin_unlock_irqrestore( &aux_count_lock,flags );
               }
@@ -1056,7 +1056,7 @@
        fasync_aux(-1, file, 0);
        spin_lock_irqsave( &aux_count, flags );
        if ( --aux_count ) {
- spin_unlock_irqrestore( &aux_count_lock );
+ spin_unlock_irqrestore( &aux_count_lock, flags );
                return 0;
        }
        spin_unlock_irqrestore( &aux_count_lock, flags );
@@ -1076,7 +1076,7 @@
        int flags;
        spin_lock_irqsave( &aux_count_lock, flags );
        if ( aux_count++ ) {
- spin_unlock_irqrestore( &aux_count_lock );
+ spin_unlock_irqrestore( &aux_count_lock, flags );
                return 0;
        }
        queue->head = queue->tail = 0; /* Flush input queue */

Regards,

Marcus Grando

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:35 EST