Whamcloud - gitweb
Branch b1_8
authortappro <tappro>
Wed, 23 Sep 2009 09:44:58 +0000 (09:44 +0000)
committertappro <tappro>
Wed, 23 Sep 2009 09:44:58 +0000 (09:44 +0000)
b=15981
i=adilger
i=johann

fix compile warnings

lustre/include/lustre_disk.h
lustre/ldlm/ldlm_request.c
lustre/osc/osc_request.c

index 6070144..e902569 100644 (file)
@@ -267,7 +267,7 @@ static inline void check_lcd(char *obd_name, int index,
                              struct lsd_client_data *lcd)
 {
         int length = sizeof(lcd->lcd_uuid);
-        if (strnlen(lcd->lcd_uuid, length) == length) {
+        if (strnlen((const char *)lcd->lcd_uuid, length) == length) {
                 lcd->lcd_uuid[length - 1] = '\0';
 
                 LCONSOLE_ERROR("the client UUID (%s) on %s for exports"
index 54a5211..b6e402b 100644 (file)
@@ -1811,8 +1811,9 @@ static int ldlm_chain_lock_for_replay(struct ldlm_lock *lock, void *closure)
 }
 
 static int replay_lock_interpret(struct ptlrpc_request *req,
-                                 struct ldlm_async_args *aa, int rc)
+                                 void *data, int rc)
 {
+        struct ldlm_async_args *aa = data;
         struct lustre_handle  old_hash_key;
         struct ldlm_lock     *lock;
         struct ldlm_reply    *reply;
index 5ab3e72..a3051a5 100644 (file)
@@ -164,9 +164,10 @@ static int osc_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp,
 }
 
 static int osc_getattr_interpret(struct ptlrpc_request *req,
-                                 struct osc_async_args *aa, int rc)
+                                 void *data, int rc)
 {
         struct ost_body *body;
+        struct osc_async_args *aa = data;
         ENTRY;
 
         if (rc != 0)
@@ -300,9 +301,10 @@ out:
 }
 
 static int osc_setattr_interpret(struct ptlrpc_request *req,
-                                 struct osc_async_args *aa, int rc)
+                                 void *data, int rc)
 {
         struct ost_body *body;
+        struct osc_async_args *aa = data;
         ENTRY;
 
         if (rc != 0)
@@ -449,9 +451,10 @@ out:
 }
 
 static int osc_punch_interpret(struct ptlrpc_request *req,
-                               struct osc_async_args *aa, int rc)
+                               void *data, int rc)
 {
         struct ost_body *body;
+        struct osc_async_args *aa = data;
         ENTRY;
 
         if (rc != 0)
@@ -513,9 +516,10 @@ static int osc_punch(struct obd_export *exp, struct obd_info *oinfo,
 }
 
 static int osc_sync_interpret(struct ptlrpc_request *req,
-                              struct osc_async_args *aa, int rc)
+                              void *data, int rc)
 {
         struct ost_body *body;
+        struct osc_async_args *aa = data;
         ENTRY;
 
         if (rc)
@@ -856,8 +860,9 @@ static int osc_set_info_async(struct obd_export *exp, obd_count keylen,
                               struct ptlrpc_request_set *set);
 
 static int osc_shrink_grant_interpret(struct ptlrpc_request *req,
-                                      struct osc_grant_args *aa, int rc)
+                                      void *data, int rc)
 {
+        struct osc_grant_args *aa = data;
         struct client_obd *cli = &req->rq_import->imp_obd->u.cli;
         struct obdo *oa = aa->aa_oa;
         struct ost_body *body;
@@ -3295,8 +3300,9 @@ static int osc_enqueue_fini(struct obd_device *obd, struct ptlrpc_request *req,
 }
 
 static int osc_enqueue_interpret(struct ptlrpc_request *req,
-                                 struct osc_enqueue_args *aa, int rc)
+                                 void *data, int rc)
 {
+        struct osc_enqueue_args *aa = data;
         int intent = aa->oa_oi->oi_flags & LDLM_FL_HAS_INTENT;
         struct lov_stripe_md *lsm = aa->oa_oi->oi_md;
         struct ldlm_lock *lock;
@@ -3539,8 +3545,9 @@ static int osc_join_lru(struct obd_export *exp,
 }
 
 static int osc_statfs_interpret(struct ptlrpc_request *req,
-                                struct osc_async_args *aa, int rc)
+                                void *data, int rc)
 {
+        struct osc_async_args *aa = data;
         struct client_obd *cli = &req->rq_import->imp_obd->u.cli;
         struct obd_statfs *msfs;
         ENTRY;