diff options
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 31853bfcd88d..ea17b533db74 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c | |||
@@ -89,12 +89,14 @@ EXPORT_SYMBOL_GPL(svc_xprt_put); | |||
89 | * Called by transport drivers to initialize the transport independent | 89 | * Called by transport drivers to initialize the transport independent |
90 | * portion of the transport instance. | 90 | * portion of the transport instance. |
91 | */ | 91 | */ |
92 | void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt) | 92 | void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt, |
93 | struct svc_serv *serv) | ||
93 | { | 94 | { |
94 | memset(xprt, 0, sizeof(*xprt)); | 95 | memset(xprt, 0, sizeof(*xprt)); |
95 | xprt->xpt_class = xcl; | 96 | xprt->xpt_class = xcl; |
96 | xprt->xpt_ops = xcl->xcl_ops; | 97 | xprt->xpt_ops = xcl->xcl_ops; |
97 | kref_init(&xprt->xpt_ref); | 98 | kref_init(&xprt->xpt_ref); |
99 | xprt->xpt_server = serv; | ||
98 | } | 100 | } |
99 | EXPORT_SYMBOL_GPL(svc_xprt_init); | 101 | EXPORT_SYMBOL_GPL(svc_xprt_init); |
100 | 102 | ||