patch-2.3.1 linux/drivers/char/vt.c

Next file: linux/drivers/fc4/fc.c
Previous file: linux/drivers/char/tty_ioctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -1099,7 +1099,7 @@
  * while those not ready go back to sleep. Seems overkill to add a wait
  * to each vt just for this - usually this does nothing!
-static struct wait_queue *vt_activate_queue = NULL;
+static DECLARE_WAIT_QUEUE_HEAD(vt_activate_queue);
  * Sleeps until a vt is activated, or the task is interrupted. Returns
@@ -1108,7 +1108,7 @@
 int vt_waitactive(int vt)
 	int retval;
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait, current);
 	add_wait_queue(&vt_activate_queue, &wait);
 	for (;;) {

TCL-scripts by Sam Shen (who was at: