From: Ilya Dryomov Date: Tue, 16 Jan 2018 11:15:02 +0000 (+0100) Subject: rbd: start enums at 1 instead of 0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a1fbb5e7bbb56fccdf54bf4ab5086c6080ee5bfa;p=openwrt%2Fstaging%2Fblogic.git rbd: start enums at 1 instead of 0 Signed-off-by: Ilya Dryomov --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 4ca0a452d88e..883f17d6deeb 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -217,12 +217,14 @@ struct rbd_obj_request; typedef void (*rbd_obj_callback_t)(struct rbd_obj_request *); enum obj_request_type { - OBJ_REQUEST_NODATA, OBJ_REQUEST_BIO, OBJ_REQUEST_PAGES + OBJ_REQUEST_NODATA = 1, + OBJ_REQUEST_BIO, + OBJ_REQUEST_PAGES, }; enum obj_operation_type { + OBJ_OP_READ = 1, OBJ_OP_WRITE, - OBJ_OP_READ, OBJ_OP_DISCARD, };