Hi,

just tried to compile a kernel w/o WAPBL (no options WAPBL) and failed
like so:


    compile  vNBx64/ufs_vnops.o
    compile  vNBx64/vfs_vnode.o
In file included from /u/NetBSD/src.ks/sys/ufs/ufs/ufs_vnops.c:106:
/u/NetBSD/src.ks/sys/ufs/ufs/ufs_vnops.c: In function 
'ufs_do_posix1e_acl_inheritance_dir':
/u/NetBSD/src.ks/sys/ufs/ufs/ufs_wapbl.h:147:39: error: statement with no 
effect [-Werror=unused-value]
  147 | #define UFS_WAPBL_BEGIN(mp) (__USE(mp), 0)
      |                             ~~~~~~~~~~^~~~
/u/NetBSD/src.ks/sys/ufs/ufs/ufs_vnops.c:1085:2: note: in expansion of macro 
'UFS_WAPBL_BEGIN'
 1085 |  UFS_WAPBL_BEGIN(tvp->v_mount);
      |  ^~~~~~~~~~~~~~~
    compile  vNBx64/vfs_vnops.o
/u/NetBSD/src.ks/sys/ufs/ufs/ufs_vnops.c: In function 
'ufs_do_posix1e_acl_inheritance_file':
/u/NetBSD/src.ks/sys/ufs/ufs/ufs_wapbl.h:147:39: error: statement with no 
effect [-Werror=unused-value]
  147 | #define UFS_WAPBL_BEGIN(mp) (__USE(mp), 0)
      |                             ~~~~~~~~~~^~~~
/u/NetBSD/src.ks/sys/ufs/ufs/ufs_vnops.c:1167:2: note: in expansion of macro 
'UFS_WAPBL_BEGIN'
 1167 |  UFS_WAPBL_BEGIN(tvp->v_mount);
      |  ^~~~~~~~~~~~~~~
    compile  vNBx64/locore.o
making sure the kern library is up to date...
`libkern.o' is up to date.
cc1: all warnings being treated as errors
--- ufs_vnops.o ---

*** Failed target: ufs_vnops.o


Should the usage auf UFS_WAPBL_* be put under control of #ifdef WAPL ... ?

Kurt

Reply via email to