diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 8646892ea826..c9c8d2964933 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -764,7 +764,7 @@ zvol_request(struct request_queue *q) continue; } - switch (rq_data_dir(req)) { + switch ((int)rq_data_dir(req)) { case READ: zvol_dispatch(zvol_read, req); break;