Whamcloud - gitweb
fixes for liblustre compilation
authornikita <nikita>
Wed, 17 May 2006 11:59:14 +0000 (11:59 +0000)
committernikita <nikita>
Wed, 17 May 2006 11:59:14 +0000 (11:59 +0000)
lustre/include/linux/obd_class.h

index df36942..b87e467 100644 (file)
@@ -421,6 +421,7 @@ obd_process_config(struct obd_device *obd, int datalen, void *data)
         ldt = obd->obd_type->typ_lu;
         d = obd->obd_lu_dev;
         if (ldt != NULL && d != NULL) {
+#ifdef __KERNEL__
                 struct lu_context ctx;
 
                 rc = lu_context_init(&ctx);
@@ -430,6 +431,7 @@ obd_process_config(struct obd_device *obd, int datalen, void *data)
                         lu_context_exit(&ctx);
                         lu_context_fini(&ctx);
                 }
+#endif
         } else {
                 OBD_CHECK_DT_OP(obd, process_config, -EOPNOTSUPP);
                 rc = OBP(obd, process_config)(obd, datalen, data);