commit | b598b67060f14eb8c34d0cef1db4727dab56ef91 | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Thu Apr 16 12:44:36 2015 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Fri Apr 17 09:03:58 2015 -0400 |
tree | eae35ba4c7ad7e538a0c273a504169f540b50b15 | |
parent | 6d07d01b62b2d81500803058f736b46677ec873a [diff] |
checkpatch: add 'Prefer ARRAY_SIZE" test Add a test for sizeof(foo)/sizeof(foo[0]) that could be ARRAY_SIZE(foo). Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>