aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2022-01-17 15:58:05 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-02-21 13:30:20 +0000
commit9a86e023aaa70e05ad9e5354f146c1477b5f5911 (patch)
treec315c7112d18c05a9a80e18a063da04478dc44ba
parent5e78c98b7cc98619d2740c7c5030aa56fb22e79f (diff)
downloadqemu-9a86e023aaa70e05ad9e5354f146c1477b5f5911.zip
qemu-9a86e023aaa70e05ad9e5354f146c1477b5f5911.tar.gz
qemu-9a86e023aaa70e05ad9e5354f146c1477b5f5911.tar.bz2
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>
-rwxr-xr-xscripts/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5e50111..ddd8148 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|