From: adilger Date: Fri, 3 Jun 2005 22:23:21 +0000 (+0000) Subject: Branch b1_4 X-Git-Tag: v1_7_100~1^25~8^2~59 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=627fea9057d7b42430634101e8571097b4087961;p=fs%2Flustre-release.git Branch b1_4 Quiet liblustre compile warning. b=6420 --- diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index a53de39..5b8835a 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -62,7 +62,9 @@ static int lov_connect_obd(struct obd_device *obd, struct lov_tgt_desc *tgt, struct obd_device *tgt_obd; struct obd_uuid lov_osc_uuid = { "LOV_OSC_UUID" }; struct lustre_handle conn = {0, }; +#ifdef __KERNEL__ struct proc_dir_entry *lov_proc_dir; +#endif int rc; ENTRY; @@ -115,6 +117,7 @@ static int lov_connect_obd(struct obd_device *obd, struct lov_tgt_desc *tgt, tgt->active = 1; lov->desc.ld_active_tgt_count++; +#ifdef __KERNEL__ lov_proc_dir = lprocfs_srch(obd->obd_proc_entry, "target_obds"); if (lov_proc_dir) { struct obd_device *osc_obd = class_conn2obd(&conn); @@ -138,6 +141,7 @@ static int lov_connect_obd(struct obd_device *obd, struct lov_tgt_desc *tgt, lov_proc_dir = NULL; } } +#endif RETURN(0); }