* [PATCH] fix jiffies compare warning in osst
@ 2003-03-11 19:13 Christoph Hellwig
2003-03-11 23:52 ` Willem Riede
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2003-03-11 19:13 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi
--- 1.39/drivers/scsi/osst.c Sun Feb 2 17:50:23 2003
+++ edited/drivers/scsi/osst.c Mon Mar 10 14:35:46 2003
@@ -777,7 +777,7 @@
#define OSST_POLL_PER_SEC 10
static int osst_wait_frame(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, int curr, int minlast, int to)
{
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
char * name = tape_name(STp);
#if DEBUG
char notyetprinted = 1;
@@ -1288,7 +1288,7 @@
int logical_blk_num = ntohl(STp->buffer->aux->logical_blk_num)
- (nframes + pending - 1) * blks_per_frame;
char * name = tape_name(STp);
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
#if DEBUG
int dbg = debugging;
#endif
@@ -1477,7 +1477,7 @@
int expected = 0;
int attempts = 1000 / skip;
int flag = 1;
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
#if DEBUG
int dbg = debugging;
#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix jiffies compare warning in osst
2003-03-11 19:13 [PATCH] fix jiffies compare warning in osst Christoph Hellwig
@ 2003-03-11 23:52 ` Willem Riede
0 siblings, 0 replies; 2+ messages in thread
From: Willem Riede @ 2003-03-11 23:52 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: James.Bottomley, linux-scsi
On 2003.03.11 14:13 Christoph Hellwig wrote:
>
> --- 1.39/drivers/scsi/osst.c Sun Feb 2 17:50:23 2003
> +++ edited/drivers/scsi/osst.c Mon Mar 10 14:35:46 2003
> @@ -777,7 +777,7 @@
> #define OSST_POLL_PER_SEC 10
> static int osst_wait_frame(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, int curr, int minlast, int to)
> {
> - long startwait = jiffies;
> + unsigned long startwait = jiffies;
> char * name = tape_name(STp);
> #if DEBUG
> char notyetprinted = 1;
> @@ -1288,7 +1288,7 @@
> int logical_blk_num = ntohl(STp->buffer->aux->logical_blk_num)
> - (nframes + pending - 1) * blks_per_frame;
> char * name = tape_name(STp);
> - long startwait = jiffies;
> + unsigned long startwait = jiffies;
> #if DEBUG
> int dbg = debugging;
> #endif
> @@ -1477,7 +1477,7 @@
> int expected = 0;
> int attempts = 1000 / skip;
> int flag = 1;
> - long startwait = jiffies;
> + unsigned long startwait = jiffies;
> #if DEBUG
> int dbg = debugging;
> #endif
> -
There are five functions that use jiffies. You fixed three of them.
If this change is done (and that's fine with me) it should be done
with this patch:
--- /home/wriede/develop/Driver25/osst.c Thu Jan 30 18:34:38 2003
+++ osst.c Tue Mar 11 18:46:48 2003
@@ -607,7 +607,7 @@
{
unsigned char cmd[MAX_COMMAND_SIZE];
Scsi_Request * SRpnt;
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
#if DEBUG
int dbg = debugging;
char * name = tape_name(STp);
@@ -674,7 +674,7 @@
{
unsigned char cmd[MAX_COMMAND_SIZE];
Scsi_Request * SRpnt;
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
#if DEBUG
int dbg = debugging;
char * name = tape_name(STp);
@@ -778,8 +778,8 @@
#define OSST_POLL_PER_SEC 10
static int osst_wait_frame(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, int curr, int minlast, int to)
{
- long startwait = jiffies;
- char * name = tape_name(STp);
+ unsigned long startwait = jiffies;
+ char * name = tape_name(STp);
#if DEBUG
char notyetprinted = 1;
#endif
@@ -1289,7 +1289,7 @@
int logical_blk_num = ntohl(STp->buffer->aux->logical_blk_num)
- (nframes + pending - 1) * blks_per_frame;
char * name = tape_name(STp);
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
#if DEBUG
int dbg = debugging;
#endif
@@ -1478,7 +1478,7 @@
int expected = 0;
int attempts = 1000 / skip;
int flag = 1;
- long startwait = jiffies;
+ unsigned long startwait = jiffies;
#if DEBUG
int dbg = debugging;
#endif
Thanks, Willem Riede.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-11 23:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-11 19:13 [PATCH] fix jiffies compare warning in osst Christoph Hellwig
2003-03-11 23:52 ` Willem Riede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox