Commit b4e40299 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: obdclass: compile issues with variable not being initialized

One of the versions of gcc I have refuses to build obd_mount.c due to
index not be initialized in function lmd_make_exclusion before it is
used.
Signed-off-by: default avatarJames Simmons <uja.ornl@gmail.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629
Reviewed-on: http://review.whamcloud.com/10705Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarBob Glossman <bob.glossman@intel.com>
Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 099d5adf
...@@ -730,7 +730,7 @@ int lustre_check_exclusion(struct super_block *sb, char *svname) ...@@ -730,7 +730,7 @@ int lustre_check_exclusion(struct super_block *sb, char *svname)
static int lmd_make_exclusion(struct lustre_mount_data *lmd, const char *ptr) static int lmd_make_exclusion(struct lustre_mount_data *lmd, const char *ptr)
{ {
const char *s1 = ptr, *s2; const char *s1 = ptr, *s2;
__u32 index, *exclude_list; __u32 index = 0, *exclude_list;
int rc = 0, devmax; int rc = 0, devmax;
/* The shortest an ost name can be is 8 chars: -OST0000. /* The shortest an ost name can be is 8 chars: -OST0000.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment