Avoid that this bitfield is sign-extended. Detected by sparse. Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> --- libmultipath/checkers/rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/checkers/rbd.c b/libmultipath/checkers/rbd.c index f60914e..745e240 100644 --- a/libmultipath/checkers/rbd.c +++ b/libmultipath/checkers/rbd.c @@ -46,7 +46,7 @@ struct rbd_checker_context { char *username; int remapped; int blacklisted; - int lock_on_read:1; + unsigned lock_on_read:1; rados_t cluster; -- 2.10.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel