diff mbox series

[v2,2/2] checkpatch: Ensure that TypeInfos are const

Message ID 20220117145805.173070-3-shentey@gmail.com (mailing list archive)
State New, archived
Headers show
Series Mark remaining global TypeInfo instances as const | expand

Commit Message

Bernhard Beschow Jan. 17, 2022, 2:58 p.m. UTC
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>
---
 scripts/checkpatch.pl | 1 +
 1 file changed, 1 insertion(+)

Comments

Philippe Mathieu-Daudé Jan. 17, 2022, 3:05 p.m. UTC | #1
On 1/17/22 15:58, Bernhard Beschow wrote:
> 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>
> ---
>  scripts/checkpatch.pl | 1 +
>  1 file changed, 1 insertion(+)

Thanks!

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff mbox series

Patch

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5caa739db4..509a290041 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2883,6 +2883,7 @@  sub process {
 				SCSIBusInfo|
 				SCSIReqOps|
 				Spice[A-Z][a-zA-Z0-9]*Interface|
+				TypeInfo|
 				USBDesc[A-Z][a-zA-Z0-9]*|
 				VhostOps|
 				VMStateDescription|