From: Adam C. Emerson Date: Fri, 17 Jul 2020 18:31:48 +0000 (-0400) Subject: rbd: Parenthesize constant macro expressions X-Git-Tag: wip-pdonnell-testing-20200918.022351~598^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=829623f3f6a291224c9f1b3da53b2a627d96a2b4;p=ceph-ci.git rbd: Parenthesize constant macro expressions So something can't bind to the shifted argument tighter than the shift operator. Signed-off-by: Adam C. Emerson --- diff --git a/src/include/rbd/librbd.h b/src/include/rbd/librbd.h index fce85e6e5a0..68b4f698009 100644 --- a/src/include/rbd/librbd.h +++ b/src/include/rbd/librbd.h @@ -118,11 +118,11 @@ typedef struct { #define RBD_MAX_IMAGE_NAME_SIZE 96 #define RBD_MAX_BLOCK_NAME_SIZE 24 -#define RBD_SNAP_CREATE_SKIP_QUIESCE 1 << 0 -#define RBD_SNAP_CREATE_IGNORE_QUIESCE_ERROR 1 << 1 +#define RBD_SNAP_CREATE_SKIP_QUIESCE (1 << 0) +#define RBD_SNAP_CREATE_IGNORE_QUIESCE_ERROR (1 << 1) -#define RBD_SNAP_REMOVE_UNPROTECT 1 << 0 -#define RBD_SNAP_REMOVE_FLATTEN 1 << 1 +#define RBD_SNAP_REMOVE_UNPROTECT (1 << 0) +#define RBD_SNAP_REMOVE_FLATTEN (1 << 1) #define RBD_SNAP_REMOVE_FORCE (RBD_SNAP_REMOVE_UNPROTECT | RBD_SNAP_REMOVE_FLATTEN) /**