[LU-6501] nidstrings always true comparisons Created: 27/Apr/15 Updated: 25/Jul/15 Resolved: 25/Jul/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oleg Drokin | Assignee: | WC Triage |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||||||
| Severity: | 3 | ||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||
| Description |
|
Running smatch I see these three warnings in recently introduced nidstrings.c: /home/green/smt/git/lustre-release/lnet/lnet/nidstrings.c:360 libcfs_namenum2netstrfns() warn: always true condition '(nf->nf_type >= 0) => (0-u32max >= 0)' /home/green/smt/git/lustre-release/lnet/lnet/nidstrings.c:373 libcfs_name2netstrfns() warn: always true condition '(libcfs_netstrfns[i]->nf_type >= 0) => (0-u32max >= 0)' /home/green/smt/git/lustre-release/lnet/lnet/nidstrings.c:487 libcfs_str2net_internal() warn: always true condition '(nf->nf_type >= 0) => (0-u32max >= 0)' |
| Comments |
| Comment by James A Simmons [ 27/Apr/15 ] |
|
This is most likely broken in libcfs/libcfs/util/nidstrings.c as well. |
| Comment by Gerrit Updater [ 29/Jun/15 ] |
|
Frederic Saunier (frederic.saunier@atos.net) uploaded a new patch: http://review.whamcloud.com/15424 |
| Comment by James Nunez (Inactive) [ 23/Jul/15 ] |
|
Could this bug be causing conf-sanity test 43 to fail? One of the failures is at: |
| Comment by Gerrit Updater [ 25/Jul/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15424/ |
| Comment by Peter Jones [ 25/Jul/15 ] |
|
Landed for 2.8 |