[dm-devel] [PATCH 09/15] libmultipath/checkers/rbd: Use unsigned int for one-bit bitfields
Bart Van Assche
bart.vanassche at sandisk.com
Fri Oct 21 18:44:31 UTC 2016
Avoid that this bitfield is sign-extended. Detected by sparse.
Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
---
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
More information about the dm-devel
mailing list