I had to make the following changes to allow 2.3.99 to compile on my
sparc.
In the patch to nfs_mount.h, I'm not sure if the correct fix isn't to
#include nfs2.h. In any case, I'm putting the patch here. Standard
disclaimers apply.
Sean
--- linux/include/linux/nfs_mount.h.dist Thu Apr 20 10:43:11 2000
+++ linux/include/linux/nfs_mount.h Thu Apr 20 10:42:55 2000
@@ -23,7 +23,7 @@
struct nfs_mount_data {
int version; /* 1 */
int fd; /* 1 */
- struct nfs2_fh old_root; /* 1 */
+ struct nfs_fh old_root; /* 1 */
int flags; /* 1 */
int rsize; /* 1 */
int wsize; /* 1 */
--- linux/arch/sparc/kernel/sys_sunos.c.dist Thu Apr 20 10:35:00 2000
+++ linux/arch/sparc/kernel/sys_sunos.c Thu Apr 20 10:36:45 2000
@@ -712,7 +712,7 @@
* address to create a socket and bind it to a reserved
* port on this system
*/
- if (copy_from_user(&sunos_mount, data, sizeof(sunos_mount))
+ if (copy_from_user(&sunos_mount, data, sizeof(sunos_mount)))
return -EFAULT;
server_fd = sys_socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP);
@@ -803,14 +803,14 @@
dev_fname = getname(data);
} else if(strcmp(type_page, "nfs") == 0) {
ret = sunos_nfs_mount (dir_page, flags, data);
- goto out2
+ goto out2;
} else if(strcmp(type_page, "ufs") == 0) {
printk("Warning: UFS filesystem mounts unsupported.\n");
ret = -ENODEV;
- goto out2
+ goto out2;
} else if(strcmp(type_page, "proc")) {
ret = -ENODEV;
- goto out2
+ goto out2;
}
ret = PTR_ERR(dev_fname);
if (IS_ERR(dev_fname))
-
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 : Sun Apr 23 2000 - 21:00:16 EST