]> git.baikalelectronics.ru Git - kernel.git/commit
scripts: a new script for checking duplicate struct declaration
authorWan Jiabing <wanjiabing@vivo.com>
Fri, 30 Apr 2021 05:53:56 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:35 +0000 (11:20 -0700)
commita8dc00801d95f74e60932dcb1cf91dfef489e7b0
tree5331d5e9a3f28d9d8ee776ce16511b147775fe7a
parentaedbdc307c68cda8d344918070e70f4a296fb5e6
scripts: a new script for checking duplicate struct declaration

checkdeclares: find struct declared more than once.  Inspired by
checkincludes.pl.

This script checks for duplicate struct declares.  Note that this will not
take into consideration macros, so you should run this only if you know
you do have real dups and do not have them under #ifdef's.  You could also
just review the results.

[akpm@linux-foundation.org: fix usage message, grammar]

Link: https://lkml.kernel.org/r/20210401110943.1010796-1-wanjiabing@vivo.com
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkdeclares.pl [new file with mode: 0644]