Whamcloud - gitweb
b=11778
authornathan <nathan>
Tue, 7 Aug 2007 15:42:01 +0000 (15:42 +0000)
committernathan <nathan>
Tue, 7 Aug 2007 15:42:01 +0000 (15:42 +0000)
i=green
fix warning

lustre/mds/mds_lov.c

index c16a977..e2cb1c8 100644 (file)
@@ -642,7 +642,7 @@ int mds_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
 }
 
 /* Collect the preconditions we need to allow client connects */
-static void mds_allow_cli(struct obd_device *obd, unsigned int flag)
+static void mds_allow_cli(struct obd_device *obd, unsigned long flag)
 {
         if (flag & CONFIG_LOG)
                 obd->u.mds.mds_fl_cfglog = 1;
@@ -827,7 +827,7 @@ int mds_notify(struct obd_device *obd, struct obd_device *watched,
         case OBD_NOTIFY_SYNC_NONBLOCK:
                 break;
         case OBD_NOTIFY_CONFIG:
-                mds_allow_cli(obd, (unsigned int)data);
+                mds_allow_cli(obd, (unsigned long)data);
         default:
                 RETURN(0);
         }