Whamcloud - gitweb
LU-8191 ptlrpc: convert functions to static
[fs/lustre-release.git] / lustre / ptlrpc / pack_server.c
index ec1c20d..3cc4fcf 100644 (file)
@@ -53,7 +53,6 @@ void lustre_swab_object_update(struct object_update *ou)
                         object_update_param_size(param));
        }
 }
-
 int lustre_swab_object_update_request(struct object_update_request *our,
                                      __u32 len)
 {
@@ -87,7 +86,8 @@ int lustre_swab_object_update_request(struct object_update_request *our,
        return size;
 }
 
-void lustre_swab_object_update_result(struct object_update_result *our)
+static void
+lustre_swab_object_update_result_no_len(struct object_update_result *our)
 {
        __swab32s(&our->our_rc);
        __swab16s(&our->our_datalen);
@@ -114,7 +114,7 @@ int lustre_swab_object_update_reply(struct object_update_reply *our, __u32 len)
                ourp = object_update_result_get(our, i, NULL);
                if (ourp == NULL)
                        return -EPROTO;
-               lustre_swab_object_update_result(ourp);
+               lustre_swab_object_update_result_no_len(ourp);
        }
 
        return size;