From d5c9fdf2801fbb53623d907e79d57ddbddf8b197 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 15 Jan 2003 17:20:19 +0000 Subject: [PATCH] Quiet compiler warnings if lprocfs is disabled. --- lustre/cobd/lproc_cache.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/lustre/cobd/lproc_cache.c b/lustre/cobd/lproc_cache.c index 790806d..5170829 100644 --- a/lustre/cobd/lproc_cache.c +++ b/lustre/cobd/lproc_cache.c @@ -24,12 +24,13 @@ #include #include -/* - * Common STATUS namespace - */ - -static int rd_target (char *page, char **start, off_t off, int count, - int *eof, void *data) +#ifndef LPROCFS +struct lprocfs_vars lprocfs_obd_vars[] = { {0} }; +struct lprocfs_vars lprocfs_module_vars[] = { {0} }; +#else +/* Common STATUS namespace */ +static int rd_target(char *page, char **start, off_t off, int count, + int *eof, void *data) { struct obd_device *dev = (struct obd_device*)data; struct lustre_handle *conn = &dev->u.cobd.cobd_target; @@ -64,10 +65,6 @@ static int rd_cache(char *page, char **start, off_t off, int count, return (rc); } -#ifndef LPROCFS -struct lprocfs_vars lprocfs_obd_vars[] = { {0} }; -struct lprocfs_vars lprocfs_module_vars[] = { {0} }; -#else struct lprocfs_vars lprocfs_obd_vars[] = { { "uuid", lprocfs_rd_uuid, 0, 0 }, { "target_uuid", rd_target, 0, 0 }, -- 1.8.3.1