Commit 73507e6c authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

drivers/block/floppy.c: remove unnecessary argument from [__]reschedule_timeout

Prior to patch "drivers/block/floppy.c: Use pr_<level>" only
reschedule_timeout(,"request done"...) printed a numeric value after a
reschedule_timeout event message.

Restore that behavior and remove the now unnecessary argument.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0da3132f
...@@ -668,7 +668,7 @@ static int output_log_pos; ...@@ -668,7 +668,7 @@ static int output_log_pos;
#define current_reqD -1 #define current_reqD -1
#define MAXTIMEOUT -2 #define MAXTIMEOUT -2
static void __reschedule_timeout(int drive, const char *message, int marg) static void __reschedule_timeout(int drive, const char *message)
{ {
if (drive == current_reqD) if (drive == current_reqD)
drive = current_drive; drive = current_drive;
...@@ -680,16 +680,16 @@ static void __reschedule_timeout(int drive, const char *message, int marg) ...@@ -680,16 +680,16 @@ static void __reschedule_timeout(int drive, const char *message, int marg)
fd_timeout.expires = jiffies + UDP->timeout; fd_timeout.expires = jiffies + UDP->timeout;
add_timer(&fd_timeout); add_timer(&fd_timeout);
if (UDP->flags & FD_DEBUG) if (UDP->flags & FD_DEBUG)
DPRINT("reschedule timeout %s %d\n", message, marg); DPRINT("reschedule timeout %s\n", message);
timeout_message = message; timeout_message = message;
} }
static void reschedule_timeout(int drive, const char *message, int marg) static void reschedule_timeout(int drive, const char *message)
{ {
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&floppy_lock, flags); spin_lock_irqsave(&floppy_lock, flags);
__reschedule_timeout(drive, message, marg); __reschedule_timeout(drive, message);
spin_unlock_irqrestore(&floppy_lock, flags); spin_unlock_irqrestore(&floppy_lock, flags);
} }
...@@ -900,7 +900,7 @@ static int _lock_fdc(int drive, bool interruptible, int line) ...@@ -900,7 +900,7 @@ static int _lock_fdc(int drive, bool interruptible, int line)
} }
command_status = FD_COMMAND_NONE; command_status = FD_COMMAND_NONE;
__reschedule_timeout(drive, "lock fdc", 0); __reschedule_timeout(drive, "lock fdc");
set_fdc(drive); set_fdc(drive);
return 0; return 0;
} }
...@@ -1983,7 +1983,7 @@ static void floppy_ready(void) ...@@ -1983,7 +1983,7 @@ static void floppy_ready(void)
static void floppy_start(void) static void floppy_start(void)
{ {
reschedule_timeout(current_reqD, "floppy start", 0); reschedule_timeout(current_reqD, "floppy start");
scandrives(); scandrives();
debug_dcl(DP->flags, "setting NEWCHANGE in floppy_start\n"); debug_dcl(DP->flags, "setting NEWCHANGE in floppy_start\n");
...@@ -2007,7 +2007,7 @@ static void floppy_start(void) ...@@ -2007,7 +2007,7 @@ static void floppy_start(void)
static void do_wakeup(void) static void do_wakeup(void)
{ {
reschedule_timeout(MAXTIMEOUT, "do wakeup", 0); reschedule_timeout(MAXTIMEOUT, "do wakeup");
cont = NULL; cont = NULL;
command_status += 2; command_status += 2;
wake_up(&command_done); wake_up(&command_done);
...@@ -2306,9 +2306,11 @@ static void request_done(int uptodate) ...@@ -2306,9 +2306,11 @@ static void request_done(int uptodate)
struct request *req = current_req; struct request *req = current_req;
unsigned long flags; unsigned long flags;
int block; int block;
char msg[sizeof("request done ") + sizeof(int) * 3];
probing = 0; probing = 0;
reschedule_timeout(MAXTIMEOUT, "request done", uptodate); snprintf(msg, sizeof(msg), "request done %d", uptodate);
reschedule_timeout(MAXTIMEOUT, msg);
if (!req) { if (!req) {
pr_info("floppy.c: no request in request_done\n"); pr_info("floppy.c: no request in request_done\n");
...@@ -2908,7 +2910,7 @@ do_request: ...@@ -2908,7 +2910,7 @@ do_request:
} }
drive = (long)current_req->rq_disk->private_data; drive = (long)current_req->rq_disk->private_data;
set_fdc(drive); set_fdc(drive);
reschedule_timeout(current_reqD, "redo fd request", 0); reschedule_timeout(current_reqD, "redo fd request");
set_floppy(drive); set_floppy(drive);
raw_cmd = &default_raw_cmd; raw_cmd = &default_raw_cmd;
...@@ -4254,7 +4256,7 @@ static int __init floppy_init(void) ...@@ -4254,7 +4256,7 @@ static int __init floppy_init(void)
else else
floppy_sizes[i] = MAX_DISK_SIZE << 1; floppy_sizes[i] = MAX_DISK_SIZE << 1;
reschedule_timeout(MAXTIMEOUT, "floppy init", MAXTIMEOUT); reschedule_timeout(MAXTIMEOUT, "floppy init");
config_types(); config_types();
for (i = 0; i < N_FDC; i++) { for (i = 0; i < N_FDC; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment