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

AGENTS: note zero-init struct depending on CONST==0

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      Add a review checklist item for code that compares foo->field == CONST
      while a different, zero-initialized instance of the same struct is
      relied upon to mean the same CONST, with no explicit assignment or
      BUILD_BUG_ON() tying the two together.

            rsahlberg@whamcloud.com Ronnie Sahlberg
            rsahlberg@whamcloud.com Ronnie Sahlberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: