Whamcloud - gitweb
Quiet a number of ia64 compile errors (not all of which are ia64 specific).
authoradilger <adilger>
Fri, 4 Jul 2003 18:29:34 +0000 (18:29 +0000)
committeradilger <adilger>
Fri, 4 Jul 2003 18:29:34 +0000 (18:29 +0000)
Strangely, it seems that  (int) / (size_t) is promoted to some non-int type
on ia64, I don't know why, since the result could never become larger than int.

lustre/ptlrpc/recov_thread.c

index 1048629..d200d4b 100644 (file)
@@ -140,7 +140,7 @@ static int log_commit_thread(void *arg)
         CDEBUG(D_HA, "%s started\n", current->comm);
         do {
                 struct ptlrpc_request *request;
-                struct obd_import *import;
+                struct obd_import *import = NULL;
                 struct list_head *sending_list;
                 int rc = 0;
 
@@ -260,8 +260,9 @@ static int log_commit_thread(void *arg)
                         } else {
                                 spin_unlock(&lcm->lcm_llcd_lock);
                                 CERROR("commit %p dropped %d cookies: rc %d\n",
-                                       llcd, llcd->llcd_cookiebytes /
-                                       sizeof(*llcd->llcd_cookies), rc);
+                                       llcd, (int)(llcd->llcd_cookiebytes /
+                                                   sizeof(*llcd->llcd_cookies)),
+                                       rc);
                                 llcd_put(llcd);
                         }
                         break;