From: Timothy Day Date: Sat, 8 Mar 2025 20:28:26 +0000 (-0500) Subject: LU-16518 mdt: implicit truncation to a one-bit field X-Git-Tag: 2.16.54~41 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4d72b73d807168746f8a17bfb947df3fe6ceb95d;p=fs%2Flustre-release.git LU-16518 mdt: implicit truncation to a one-bit field Change the uc_rbac one-bit fields to unsigned int to avoid an implicit truncation error reported by Clang (-Wsingle-bit-bitfield-constant-conversion). Test-Parameters: trivial Signed-off-by: Timothy Day Change-Id: I394e71d5d572d4586de55093d4cc60729041a822 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58347 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sebastien Buisson Reviewed-by: James Simmons Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- diff --git a/lustre/include/md_object.h b/lustre/include/md_object.h index 24f61be..bc171fd 100644 --- a/lustre/include/md_object.h +++ b/lustre/include/md_object.h @@ -681,16 +681,16 @@ struct lu_ucred { char uc_jobid[LUSTRE_JOBID_SIZE]; struct lnet_nid uc_nid; bool uc_enable_audit; - int uc_rbac_file_perms:1; - int uc_rbac_dne_ops:1; - int uc_rbac_quota_ops:1; - int uc_rbac_byfid_ops:1; - int uc_rbac_chlg_ops:1; - int uc_rbac_fscrypt_admin:1; - int uc_rbac_server_upcall:1; - int uc_rbac_ignore_root_prjquota:1; - int uc_rbac_hsm_ops:1; - int uc_rbac_local_admin:1; + unsigned int uc_rbac_file_perms:1; + unsigned int uc_rbac_dne_ops:1; + unsigned int uc_rbac_quota_ops:1; + unsigned int uc_rbac_byfid_ops:1; + unsigned int uc_rbac_chlg_ops:1; + unsigned int uc_rbac_fscrypt_admin:1; + unsigned int uc_rbac_server_upcall:1; + unsigned int uc_rbac_ignore_root_prjquota:1; + unsigned int uc_rbac_hsm_ops:1; + unsigned int uc_rbac_local_admin:1; }; struct lu_ucred *lu_ucred(const struct lu_env *env);