]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
include/hw/boards: add warning about changing deprecation logic
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 Feb 2025 19:41:16 +0000 (19:41 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 May 2025 16:11:16 +0000 (17:11 +0100)
If we change the deprecation logic in include/hw/boards.h, we must make
a corresponding change to docs/conf.py and docs/about/deprecated.rst.
Add comments to these files as a warning to future maintainers to keep
these files in sync.

Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/conf.py
include/hw/boards.h

index 248ff8cf5db4e956caaea51d9796c5b0a8ee0512..f892a6e1da3769b360df9c6ad7dbca6e2821b6d5 100644 (file)
@@ -136,6 +136,10 @@ if micro >= 50:
     else:
         minor += 1
 
+# These thresholds must match the constants
+# MACHINE_VER_DELETION_MAJOR  & MACHINE_VER_DEPRECATION_MAJOR
+# defined in include/hw/boards.h and the introductory text in
+# docs/about/deprecated.rst
 ver_machine_deprecation_version = "%d.%d.0" % (major - 3, minor)
 ver_machine_deletion_version = "%d.%d.0" % (major - 6, minor)
 
index a6784fe984f74bc57162fb4a31569436ceb70a6a..a7b1fcffae33b184b322bf1d7998a101486b406d 100644 (file)
@@ -636,7 +636,11 @@ struct MachineState {
 /*
  * How many years/major releases for each phase
  * of the life cycle. Assumes use of versioning
- * scheme where major is bumped each year
+ * scheme where major is bumped each year.
+ *
+ * These values must match the ver_machine_deprecation_version
+ * and ver_machine_deletion_version logic in docs/conf.py and
+ * the text in docs/about/deprecated.rst
  */
 #define MACHINE_VER_DELETION_MAJOR 6
 #define MACHINE_VER_DEPRECATION_MAJOR 3