All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Dalecki <dalecki@evision-ventures.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.5.25 end_request trivia
Date: Mon, 08 Jul 2002 14:44:45 +0200	[thread overview]
Message-ID: <3D29893D.2040909@evision-ventures.com> (raw)
In-Reply-To: Pine.LNX.4.33.0207051646280.2484-100000@penguin.transmeta.com

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

The following patch does the following:

1. Make airo include tqueue.h, which is needed to make this driver
compile at all again.

2. Adjust aztcd.c and sonycd535.c to the recent end_request() signature
changes.

The patch is against 2.5.24, but still applies cleanly on top of 2.5.25.

[-- Attachment #2: misc-2.5.24.diff --]
[-- Type: text/plain, Size: 2105 bytes --]

diff -urN linux-2.5.24/drivers/cdrom/aztcd.c linux/drivers/cdrom/aztcd.c
--- linux-2.5.24/drivers/cdrom/aztcd.c	2002-06-21 00:53:56.000000000 +0200
+++ linux/drivers/cdrom/aztcd.c	2002-06-23 20:12:27.000000000 +0200
@@ -2083,12 +2083,12 @@
 				}
 				azt_state = AZT_S_IDLE;
 				while (current_valid())
-					end_request(0);
+					end_request(CURRENT, 0);
 				return;
 			}
 
 /*	  if (aztSendCmd(ACMD_SET_MODE)) RETURN("azt_poll 3");
-	  outb(0x01, DATA_PORT);          
+	  outb(0x01, DATA_PORT);
 	  PA_OK;
 	  STEN_LOW;
 */
@@ -2138,7 +2138,7 @@
 				}
 				azt_state = AZT_S_IDLE;
 				while (current_valid())
-					end_request(0);
+					end_request(CURRENT, 0);
 				return;
 			}
 
@@ -2236,7 +2236,7 @@
 						break;
 					}
 					if (current_valid())
-						end_request(0);
+						end_request(CURRENT, 0);
 					AztTries = 5;
 				}
 				azt_state = AZT_S_START;
diff -urN linux-2.5.24/drivers/cdrom/sonycd535.c linux/drivers/cdrom/sonycd535.c
--- linux-2.5.24/drivers/cdrom/sonycd535.c	2002-06-21 00:53:49.000000000 +0200
+++ linux/drivers/cdrom/sonycd535.c	2002-06-23 20:12:27.000000000 +0200
@@ -805,14 +805,8 @@
 	Byte cmd[2];
 
 	while (1) {
-		/*
-		 * The beginning here is stolen from the hard disk driver.  I hope
-		 * it's right.
-		 */
-		if (blk_queue_empty(QUEUE)) {
-			CLEAR_INTR;
+		if (blk_queue_empty(QUEUE))
 			return;
-		}
 
 		dev = minor(CURRENT->rq_dev);
 		block = CURRENT->sector;
@@ -828,7 +822,6 @@
 				 * If the block address is invalid or the request goes beyond the end of
 				 * the media, return an error.
 				 */
-				
 				if (sony_toc->lead_out_start_lba <= (block / 4)) {
 					end_request(CURRENT, 0);
 					return;
diff -urN linux-2.5.24/drivers/net/wireless/airo.c linux/drivers/net/wireless/airo.c
--- linux-2.5.24/drivers/net/wireless/airo.c	2002-06-21 00:53:45.000000000 +0200
+++ linux/drivers/net/wireless/airo.c	2002-06-23 18:25:56.000000000 +0200
@@ -32,6 +32,7 @@
 #include <linux/timer.h>
 #include <linux/interrupt.h>
 #include <linux/in.h>
+#include <linux/tqueue.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/bitops.h>

      parent reply	other threads:[~2002-07-08 12:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05 23:54 linux 2.5.25 Linus Torvalds
2002-07-06  5:35 ` Albert D. Cahalan
2002-07-06  8:17 ` [patch] Typo fixes in input code Brad Hards
2002-07-06 17:48   ` James Simmons
2002-07-07  2:22     ` Brad Hards
2002-07-08 11:08       ` Vojtech Pavlik
2002-07-06 13:54 ` linux 2.5.25 (and LVM) Matthias Andree
2002-07-08  8:43   ` Joe Thornber
2002-07-08  8:40     ` Alexander Viro
2002-07-08  1:04 ` linux 2.5.25 Tim Pepper
2002-07-08 12:44 ` Martin Dalecki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D29893D.2040909@evision-ventures.com \
    --to=dalecki@evision-ventures.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.