Skip to contentSkip to conversation

qapi/machine: Place the 'Notes' tag after the 'Since' tag

PATCH Superseded Philippe Mathieu-Daudé 2 participants 3 messages Feb 27, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qapi/machine: Place the 'Notes' tag after the 'Since' tag

This fixes when adding a 'Since' tag:

In file included from qapi/qapi-schema.json:105:
qapi/machine.json:25:1: '@arch:' can't follow 'Notes' section

---
 qapi/machine.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qapi/machine.json +2 -2
index 6c11e3cf3a..2b4f5f0962 100644
@@ -16,11 +16,11 @@
 # individual target constants are not documented here, for the time
 # being.
 #
+# Since: 3.0
+#
 # Notes: The resulting QMP strings can be appended to the "qemu-system-"
 #        prefix to produce the corresponding QEMU executable name. This
 #        is true even for "qemu-system-x86_64".
-#
-# Since: 3.0
 ##
 { 'enum' : 'SysEmuTarget',
   'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',
Signature · 1 line
2.21.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Philippe Mathieu-Daudé

This fixes when adding a 'Since' tag:

In file included from qapi/qapi-schema.json:105:
qapi/machine.json:25:1: '@arch:' can't follow 'Notes' section

---
  qapi/machine.json | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
qapi/machine.json +0 -0
index 6c11e3cf3a..2b4f5f0962 100644
@@ -16,11 +16,11 @@
  # individual target constants are not documented here, for the time
  # being.
  #

qapi/machine.json line 26

Quoted 10 lines
qapi/machine.json +2 -2
+# Since: 3.0
+#
  # Notes: The resulting QMP strings can be appended to the "qemu-system-"
  #        prefix to produce the corresponding QEMU executable name. This
  #        is true even for "qemu-system-x86_64".
-#
-# Since: 3.0
  ##
  { 'enum' : 'SysEmuTarget',
    'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',

Does the same issue occur for @CpuInstanceProperties: at line 829? The 'Since:' follows a 'Note:' section (but maybe the singular usage is intended).

otherwise

#2 lore raw
Quoted 26 lines · Liam Merwick
Quoted 25 lines · Philippe Mathieu-Daudé

This fixes when adding a 'Since' tag:

   In file included from qapi/qapi-schema.json:105:
   qapi/machine.json:25:1: '@arch:' can't follow 'Notes' section

---
  qapi/machine.json | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
qapi/machine.json +2 -2
index 6c11e3cf3a..2b4f5f0962 100644
@@ -16,11 +16,11 @@
   # individual target constants are not documented here, for the time
   # being.
   #
+# Since: 3.0
+#
   # Notes: The resulting QMP strings can be appended to the "qemu-system-"
   #        prefix to produce the corresponding QEMU executable name. This
   #        is true even for "qemu-system-x86_64".
-#
-# Since: 3.0
Quoted 8 lines

qapi/machine.json line 26

Quoted 4 lines
qapi/machine.json +0 -0
   ##
   { 'enum' : 'SysEmuTarget',
     'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',

Does the same issue occur for @CpuInstanceProperties: at line 829? The 'Since:' follows a 'Note:' section (but maybe the singular usage is intended).

Ah thanks for checking other cases. Yes, the same error should occur.

Quoted 4 lines

otherwise

Thanks! I'll respin with the other entry fixed.