diff options
| author | 2013-06-03 21:58:18 +0800 | |
|---|---|---|
| committer | 2013-06-03 11:32:50 -0700 | |
| commit | 894cca1d5c310423b5d2b8969f140aa3e195ebe1 (patch) | |
| tree | 3488aad30260688a5bab144d6641e7bc19b5d8b4 | |
| parent | staging/lustre: clean up and remove libcfs/linux/linux-fs.c (diff) | |
staging/lustre: silence gcc build warning
got bellow build warning that is indeed a false alarm.
CC [M] drivers/staging/lustre/lustre/llite/llite_nfs.o
drivers/staging/lustre/lustre/libcfs/nidstrings.c: In function ‘
libcfs_str2net_internal’:
drivers/staging/lustre/lustre/libcfs/nidstrings.c:432:17: warning: ‘nf’ may be
used uninitialized in this function [-Wuninitializ
ed]
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/lustre/lustre/libcfs/nidstrings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/nidstrings.c b/drivers/staging/lustre/lustre/libcfs/nidstrings.c index 9a2d70ce2421..ccfd1078a906 100644 --- a/drivers/staging/lustre/lustre/libcfs/nidstrings.c +++ b/drivers/staging/lustre/lustre/libcfs/nidstrings.c @@ -414,7 +414,7 @@ libcfs_nid2str(lnet_nid_t nid) static struct netstrfns * libcfs_str2net_internal(const char *str, __u32 *net) { - struct netstrfns *nf; + struct netstrfns *uninitialized_var(nf); int nob; int netnum; int i; |
