From: qiyong Date: Wed, 31 May 2006 18:32:30 +0000 (+0000) Subject: fix for gcc4 otherwise we get "invalid storage class". X-Git-Tag: v1_7_100~1^90~8^2~175 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=23de5b6ce71e4d726944eaf6b887e4f63d0b9f99;p=fs%2Flustre-release.git fix for gcc4 otherwise we get "invalid storage class". --- diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index 96cb3a0..bdb9798 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -153,6 +153,8 @@ int lcfg_ioctl(char * func, int dev_id, struct lustre_cfg *lcfg) return rc; } +static int do_device(char *func, char *devname); + int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg) { struct obd_ioctl_data data; @@ -161,7 +163,6 @@ int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg) /* Always operates on MGS dev */ if (mgs_device == -1) { - static int do_device(char *func, char *devname); do_disconnect(NULL, 1); rc = do_device("mgsioc", "MGS"); if (rc) {