openzfs-kmod build error

From: Kostya Berger <bergerkos_at_yahoo.co.uk>
Date: Tue, 23 Jun 2020 14:23:48 +0000 (UTC)
CURRENT r362292 
sysutils/openzfs-kmod build aborts with error:...............
/usr/ports/sysutils/openzfs-kmod/work/zfs-c0eb5c35e/module/os/freebsd/zfs/zfs_vfsops.c:128:19: error: 
      incompatible pointer types initializing 'vfs_checkexp_t *' (aka 'int (*)(struct
      mount *, struct sockaddr *, unsigned long *, struct ucred **, int *, int *)') with
      an expression of type 'int (vfs_t *, struct sockaddr *, int *, struct ucred **, int
      *, int **)' (aka 'int (struct mount *, struct sockaddr *, int *, struct ucred **,
      int *, int **)') [-Werror,-Wincompatible-pointer-types]
        .vfs_checkexp =         zfs_checkexp,
                                ^~~~~~~~~~~~
/usr/ports/sysutils/openzfs-kmod/work/zfs-c0eb5c35e/module/os/freebsd/zfs/zfs_vfsops.c:1911:56: error: 
      incompatible pointer types passing 'int *' to parameter of type 'uint64_t *'
      (aka 'unsigned long *') [-Werror,-Wincompatible-pointer-types]
        return (vfs_stdcheckexp(zfsvfs->z_parent->z_vfs, nam, extflagsp,
                                                              ^~~~~~~~~
/usr/src/sys/sys/mount.h:980:17: note: passing argument to parameter here
vfs_checkexp_t          vfs_stdcheckexp;
                        ^
/usr/ports/sysutils/openzfs-kmod/work/zfs-c0eb5c35e/module/os/freebsd/zfs/zfs_vfsops.c:1912:32: error: 
      incompatible pointer types passing 'int **' to parameter of type 'int *';
      dereference with * [-Werror,-Wincompatible-pointer-types]
            credanonp, numsecflavors, secflavors));
                                      ^~~~~~~~~~
                                      *
/usr/src/sys/sys/mount.h:980:17: note: passing argument to parameter here
vfs_checkexp_t          vfs_stdcheckexp;
                        ^
3 errors generated.
*** Error code 1

Stop.



With kindest regards,
Kostya Berger
 
Received on Tue Jun 23 2020 - 12:23:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:24 UTC