diff --git a/lustre/ptlrpc/llog_net.c b/lustre/ptlrpc/llog_net.c index 92b1418c4f72ad3dc6fb5936675a05d92239da68..8d955d3f9c5a15a1690eaa8abb7a00b27192fbd0 100644 --- a/lustre/ptlrpc/llog_net.c +++ b/lustre/ptlrpc/llog_net.c @@ -159,6 +159,16 @@ int llog_receptor_accept(struct llog_ctxt *ctxt, struct obd_import *imp) } EXPORT_SYMBOL(llog_receptor_accept); +#else /* !__KERNEL__ */ + +int llog_origin_connect(struct llog_ctxt *ctxt, int count, + struct llog_logid *logid, struct llog_gen *gen, + struct obd_uuid *uuid) +{ + return 0; +} +#endif + int llog_initiator_connect(struct llog_ctxt *ctxt) { struct obd_import *new_imp; @@ -175,18 +185,3 @@ int llog_initiator_connect(struct llog_ctxt *ctxt) RETURN(0); } EXPORT_SYMBOL(llog_initiator_connect); - -#else /* !__KERNEL__ */ - -int llog_origin_connect(struct llog_ctxt *ctxt, int count, - struct llog_logid *logid, struct llog_gen *gen, - struct obd_uuid *uuid) -{ - return 0; -} - -int llog_initiator_connect(struct llog_ctxt *ctxt) -{ - return 0; -} -#endif