summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBernhard Beschow2022-01-17 15:58:05 +0100
committerPeter Maydell2022-02-21 14:30:20 +0100
commit9a86e023aaa70e05ad9e5354f146c1477b5f5911 (patch)
treec315c7112d18c05a9a80e18a063da04478dc44ba /scripts
parentMark remaining global TypeInfo instances as const (diff)
downloadqemu-9a86e023aaa70e05ad9e5354f146c1477b5f5911.tar.gz
qemu-9a86e023aaa70e05ad9e5354f146c1477b5f5911.tar.xz
qemu-9a86e023aaa70e05ad9e5354f146c1477b5f5911.zip
checkpatch: Ensure that TypeInfos are const
Now that all static TypeInfo instances are declared const, prevent that new non-const instances are created. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20220117145805.173070-3-shentey@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5e50111060..ddd8148d87 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2882,6 +2882,7 @@ sub process {
SCSIBusInfo|
SCSIReqOps|
Spice[A-Z][a-zA-Z0-9]*Interface|
+ TypeInfo|
USBDesc[A-Z][a-zA-Z0-9]*|
VhostOps|
VMStateDescription|