Skip to contentSkip to conversation

target/s390x: Fix a typo in s390_cpu_class_init()

PATCH Superseded Philippe Mathieu-Daudé 3 participants 4 messages Mar 23, 2025 – Mar 24, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/s390x: Fix a typo in s390_cpu_class_init()

Fixes 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")
---
 target/s390x/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu.c +1 -1
index d73142600bf..1f75629ddc2 100644
@@ -377,7 +377,7 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
     resettable_class_set_parent_phases(rc, NULL, s390_cpu_reset_hold, NULL,
                                        &scc->parent_phases);
 
-    cc->class_by_name = s390_cpu_class_by_name,
+    cc->class_by_name = s390_cpu_class_by_name;
     cc->mmu_index = s390x_cpu_mmu_index;
     cc->dump_state = s390_cpu_dump_state;
     cc->query_cpu_fast = s390_query_cpu_fast;
Signature · 1 line
2.47.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Philippe Mathieu-Daudé
Fixes 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")
---
  target/s390x/cpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu.c +0 -0
index d73142600bf..1f75629ddc2 100644

target/s390x/cpu.c static void s390_cpu_class_init(ObjectClass *oc, void *data) · line 383

Quoted 8 lines
target/s390x/cpu.c +1 -1
@@ -377,7 +377,7 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
      resettable_class_set_parent_phases(rc, NULL, s390_cpu_reset_hold, NULL,
                                         &scc->parent_phases);
 
-    cc->class_by_name = s390_cpu_class_by_name,
+    cc->class_by_name = s390_cpu_class_by_name;
      cc->mmu_index = s390x_cpu_mmu_index;
      cc->dump_state = s390_cpu_dump_state;
      cc->query_cpu_fast = s390_query_cpu_fast;

r~

Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 11 lines · Philippe Mathieu-Daudé
Fixes 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")
---
  target/s390x/cpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu.c +0 -0
index d73142600bf..1f75629ddc2 100644

target/s390x/cpu.c static void s390_cpu_class_init(ObjectClass *oc, void *data) · line 380

Quoted 5 lines
target/s390x/cpu.c +1 -1
@@ -377,7 +377,7 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
      resettable_class_set_parent_phases(rc, NULL, s390_cpu_reset_hold, NULL,
                                         &scc->parent_phases);
 
-    cc->class_by_name = s390_cpu_class_by_name,
+    cc->class_by_name = s390_cpu_class_by_name;

Please add a proper patch description next time. I spent dozens of seconds to spot the typo in one of the words 'til I realized that it is the comma at the end ;-)

#3 lore raw
Quoted 7 lines · Thomas Huth
Quoted 6 lines · Philippe Mathieu-Daudé
Fixes 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")

---
  target/s390x/cpu.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

target/s390x/cpu.c static void s390_cpu_class_init(ObjectClass *oc, · line 380

Quoted 10 lines
target/s390x/cpu.c +1 -1
index d73142600bf..1f75629ddc2 100644
@@ -377,7 +377,7 @@ static void s390_cpu_class_init(ObjectClass *oc, 
 void *data)
       resettable_class_set_parent_phases(rc, NULL, s390_cpu_reset_hold, NULL,
                                          &scc->parent_phases);
-    cc->class_by_name = s390_cpu_class_by_name,
+    cc->class_by_name = s390_cpu_class_by_name;

Please add a proper patch description next time. I spent dozens of seconds to spot the typo in one of the words 'til I realized that it is the comma at the end ;-)

Sorry I thought it was trivial, but since it got unnoticed during 8 years, maybe not.

Quoted 3 lines