Skip to content

Commit c60d13e

Browse files
Dave Chinnerdchinner
authored andcommitted
xfs: convert log ticket and iclog flags to unsigned.
5.18 w/ std=gnu11 compiled with gcc-5 wants flags stored in unsigned fields to be unsigned. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Chandan Babu R <chandan.babu@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
1 parent 2eb7550 commit c60d13e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/xfs/xfs_log_priv.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ enum xlog_iclog_state {
5151
/*
5252
* In core log flags
5353
*/
54-
#define XLOG_ICL_NEED_FLUSH (1 << 0) /* iclog needs REQ_PREFLUSH */
55-
#define XLOG_ICL_NEED_FUA (1 << 1) /* iclog needs REQ_FUA */
54+
#define XLOG_ICL_NEED_FLUSH (1u << 0) /* iclog needs REQ_PREFLUSH */
55+
#define XLOG_ICL_NEED_FUA (1u << 1) /* iclog needs REQ_FUA */
5656

5757
#define XLOG_ICL_STRINGS \
5858
{ XLOG_ICL_NEED_FLUSH, "XLOG_ICL_NEED_FLUSH" }, \
@@ -62,7 +62,7 @@ enum xlog_iclog_state {
6262
/*
6363
* Log ticket flags
6464
*/
65-
#define XLOG_TIC_PERM_RESERV 0x1 /* permanent reservation */
65+
#define XLOG_TIC_PERM_RESERV (1u << 0) /* permanent reservation */
6666

6767
#define XLOG_TIC_FLAGS \
6868
{ XLOG_TIC_PERM_RESERV, "XLOG_TIC_PERM_RESERV" }
@@ -165,7 +165,7 @@ typedef struct xlog_ticket {
165165
char t_ocnt; /* original count : 1 */
166166
char t_cnt; /* current count : 1 */
167167
char t_clientid; /* who does this belong to; : 1 */
168-
char t_flags; /* properties of reservation : 1 */
168+
uint8_t t_flags; /* properties of reservation : 1 */
169169

170170
/* reservation array fields */
171171
uint t_res_num; /* num in array : 4 */

0 commit comments

Comments
 (0)