Skip to content

Commit

Permalink
sio-iosched: cast parameters to unsigned long
Browse files Browse the repository at this point in the history
  • Loading branch information
flar2 authored and acuicultor committed Aug 30, 2021
1 parent 150a2bb commit 28901e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/sio-iosched.c
Expand Up @@ -58,7 +58,7 @@ sio_merged_requests(struct request_queue *q, struct request *rq,
* and move into next position (next will be deleted) in fifo.
*/
if (!list_empty(&rq->queuelist) && !list_empty(&next->queuelist)) {
if (time_before(next->fifo_time, rq->fifo_time)) {
if (time_before((unsigned long)next->fifo_time, (unsigned long)rq->fifo_time)) {
list_move(&rq->queuelist, &next->queuelist);
rq->fifo_time = next->fifo_time;
}
Expand Down Expand Up @@ -108,7 +108,7 @@ sio_expired_request(struct sio_data *sd, int sync, int data_dir)
rq = rq_entry_fifo(list->next);

/* Request has expired */
if (time_after(jiffies, rq->fifo_time))
if (time_after(jiffies, (unsigned long)rq->fifo_time))
return rq;

return NULL;
Expand Down

0 comments on commit 28901e6

Please sign in to comment.