diff options
Diffstat (limited to 'fs/nfs/nfsroot.c')
-rw-r--r-- | fs/nfs/nfsroot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c index 3490322d114..e87b44ee9ac 100644 --- a/fs/nfs/nfsroot.c +++ b/fs/nfs/nfsroot.c | |||
@@ -76,6 +76,7 @@ | |||
76 | #include <linux/fs.h> | 76 | #include <linux/fs.h> |
77 | #include <linux/init.h> | 77 | #include <linux/init.h> |
78 | #include <linux/sunrpc/clnt.h> | 78 | #include <linux/sunrpc/clnt.h> |
79 | #include <linux/sunrpc/xprtsock.h> | ||
79 | #include <linux/nfs.h> | 80 | #include <linux/nfs.h> |
80 | #include <linux/nfs_fs.h> | 81 | #include <linux/nfs_fs.h> |
81 | #include <linux/nfs_mount.h> | 82 | #include <linux/nfs_mount.h> |
@@ -491,7 +492,7 @@ static int __init root_nfs_get_handle(void) | |||
491 | struct sockaddr_in sin; | 492 | struct sockaddr_in sin; |
492 | int status; | 493 | int status; |
493 | int protocol = (nfs_data.flags & NFS_MOUNT_TCP) ? | 494 | int protocol = (nfs_data.flags & NFS_MOUNT_TCP) ? |
494 | IPPROTO_TCP : IPPROTO_UDP; | 495 | XPRT_TRANSPORT_TCP : XPRT_TRANSPORT_UDP; |
495 | int version = (nfs_data.flags & NFS_MOUNT_VER3) ? | 496 | int version = (nfs_data.flags & NFS_MOUNT_VER3) ? |
496 | NFS_MNT3_VERSION : NFS_MNT_VERSION; | 497 | NFS_MNT3_VERSION : NFS_MNT_VERSION; |
497 | 498 | ||