diff options
author | Umer Saleem <[email protected]> | 2023-11-08 02:24:16 +0500 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2023-11-16 14:23:03 -0800 |
commit | 44c8ff9b0ce2d94bd692087e86812f6a9f064353 (patch) | |
tree | a956867c02bf08313e332091e1ed4641cfb7f6e2 | |
parent | f0ffcc3adcd01ec60b384b0c07c8671b6fd1d982 (diff) |
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 #15489
-rw-r--r-- | module/os/linux/zfs/zfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/linux/zfs/zfs_vfsops.c b/module/os/linux/zfs/zfs_vfsops.c index a1db5c57c..2792bc027 100644 --- a/module/os/linux/zfs/zfs_vfsops.c +++ b/module/os/linux/zfs/zfs_vfsops.c @@ -1488,7 +1488,7 @@ zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent) * read-only flag, pretend it was set, as done for snapshots. */ if (!canwrite) - vfs->vfs_readonly = true; + vfs->vfs_readonly = B_TRUE; error = zfsvfs_create(osname, vfs->vfs_readonly, &zfsvfs); if (error) { |