aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorUmer Saleem <[email protected]>2023-11-08 02:24:16 +0500
committerGitHub <[email protected]>2023-11-07 13:24:16 -0800
commit9198de8f1079a8bbb837de3e3f8e236777b1375d (patch)
treee4885e6b93c724ee943c31217eaf5ec715e43236 /module
parentdc45a00eac35a2e66c3ddba6e52e2b2280bd2be0 (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
Diffstat (limited to 'module')
-rw-r--r--module/os/linux/zfs/zfs_vfsops.c2
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) {