2.3.99-pre3 compile failure [NFS

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Fri Mar 24 2000 - 16:35:23 EST


>>>>> " " == Adam <adam@eax.com> writes:

> gcc -D__KERNEL__ -I/usr/src/Linux/23/linux/include -D__SMP__
> -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
> -fno-strict-aliasing -pipe -march=i686 -c -o nfsroot.o
> nfsroot.c nfsroot.c:148: `NFS_MOUNT_LOCK' undeclared here (not
> in a function) nfsroot.c:148: initializer element for
> `root_bool_opts[10].and_mask' is not constant make[3]: ***
> [nfsroot.o] Error 1 make[3]: Leaving directory
> `/usr/src/Linux/23/linux/fs/nfs' make[2]: *** [first_rule]
> Error 2

This one's not one of mine. The correct patch is as follows

Cheers,
  Trond

--- fs/nfs/nfsroot.c.orig Wed Mar 22 18:55:33 2000
+++ fs/nfs/nfsroot.c Fri Mar 24 22:32:41 2000
@@ -145,7 +145,7 @@
         { "nocto", ~NFS_MOUNT_NOCTO, NFS_MOUNT_NOCTO },
         { "ac", ~NFS_MOUNT_NOAC, 0 },
         { "noac", ~NFS_MOUNT_NOAC, NFS_MOUNT_NOAC },
- { "lock", ~NFS_MOUNT_LOCK, 0 },
+ { "lock", ~NFS_MOUNT_NONLM, 0 },
         { "nolock", ~NFS_MOUNT_NONLM, NFS_MOUNT_NONLM },
         { NULL, 0, 0 }
 };

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:14 EST