Skip to content

Commit d35f02d

Browse files
Umer Saleemdarkbasic
authored andcommitted
Linux 6.6 compat: fix implicit conversion error with debug build
With Linux v6.6.0 and GCC 12, when debug build is configured, implicit conversion error is raised while converting 'enum <anonymous>' to 'boolean_t'. Use 'B_TRUE' instead of 'true' to fix the issue. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Pavel Snajdr <[email protected]> Reviewed-by: Brian Atkinson <[email protected]> Signed-off-by: Umer Saleem <[email protected]> Closes openzfs#15489
1 parent 099b6cb commit d35f02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/os/linux/zfs/zfs_vfsops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent)
14881488
* read-only flag, pretend it was set, as done for snapshots.
14891489
*/
14901490
if (!canwrite)
1491-
vfs->vfs_readonly = true;
1491+
vfs->vfs_readonly = B_TRUE;
14921492

14931493
error = zfsvfs_create(osname, vfs->vfs_readonly, &zfsvfs);
14941494
if (error) {

0 commit comments

Comments
 (0)