Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6501

nidstrings always true comparisons

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • 3
    • 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)'
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: