checkpatch: Ensure that TypeInfos are const
authorBernhard Beschow <shentey@gmail.com>
Mon, 17 Jan 2022 14:58:05 +0000 (15:58 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Feb 2022 13:30:20 +0000 (13:30 +0000)
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>
scripts/checkpatch.pl

index 5e5011106012f59508255671c32d6547ff250fb0..ddd8148d87e56bb058d59844cc1fddb835cdaf47 100755 (executable)
@@ -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|