On 11 Apr 2022 at 06:01, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > 5.18 w/ std=gnu11 compiled with gcc-5 wants flags stored in unsigned > fields to be unsigned. > Looks good to me. Reviewed-by: Chandan Babu R <chandan.babu@xxxxxxxxxx> > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> > --- > fs/xfs/libxfs/xfs_da_format.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/fs/xfs/libxfs/xfs_da_format.h b/fs/xfs/libxfs/xfs_da_format.h > index 5a49caa5c9df..4c6561baf9e9 100644 > --- a/fs/xfs/libxfs/xfs_da_format.h > +++ b/fs/xfs/libxfs/xfs_da_format.h > @@ -688,10 +688,10 @@ struct xfs_attr3_leafblock { > #define XFS_ATTR_ROOT_BIT 1 /* limit access to trusted attrs */ > #define XFS_ATTR_SECURE_BIT 2 /* limit access to secure attrs */ > #define XFS_ATTR_INCOMPLETE_BIT 7 /* attr in middle of create/delete */ > -#define XFS_ATTR_LOCAL (1 << XFS_ATTR_LOCAL_BIT) > -#define XFS_ATTR_ROOT (1 << XFS_ATTR_ROOT_BIT) > -#define XFS_ATTR_SECURE (1 << XFS_ATTR_SECURE_BIT) > -#define XFS_ATTR_INCOMPLETE (1 << XFS_ATTR_INCOMPLETE_BIT) > +#define XFS_ATTR_LOCAL (1u << XFS_ATTR_LOCAL_BIT) > +#define XFS_ATTR_ROOT (1u << XFS_ATTR_ROOT_BIT) > +#define XFS_ATTR_SECURE (1u << XFS_ATTR_SECURE_BIT) > +#define XFS_ATTR_INCOMPLETE (1u << XFS_ATTR_INCOMPLETE_BIT) > #define XFS_ATTR_NSP_ONDISK_MASK (XFS_ATTR_ROOT | XFS_ATTR_SECURE) > > /* -- chandan