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

Philippe Mathieu-Daudé posted 1 patch 6 days, 14 hours ago
There is a newer version of this series
target/s390x/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] target/s390x: Fix a typo in s390_cpu_class_init()
Posted by Philippe Mathieu-Daudé 6 days, 14 hours ago
Fixes: 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/s390x/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index d73142600bf..1f75629ddc2 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -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;
-- 
2.47.1


Re: [PATCH] target/s390x: Fix a typo in s390_cpu_class_init()
Posted by Thomas Huth 6 days ago
On 23/03/2025 16.30, Philippe Mathieu-Daudé wrote:
> Fixes: 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   target/s390x/cpu.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
> index d73142600bf..1f75629ddc2 100644
> --- a/target/s390x/cpu.c
> +++ b/target/s390x/cpu.c
> @@ -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 ;-)

Reviewed-by: Thomas Huth <thuth@redhat.com>


Re: [PATCH] target/s390x: Fix a typo in s390_cpu_class_init()
Posted by Philippe Mathieu-Daudé 5 days, 13 hours ago
On 24/3/25 07:05, Thomas Huth wrote:
> On 23/03/2025 16.30, Philippe Mathieu-Daudé wrote:
>> Fixes: 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU 
>> subclasses")
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>>   target/s390x/cpu.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
>> index d73142600bf..1f75629ddc2 100644
>> --- a/target/s390x/cpu.c
>> +++ b/target/s390x/cpu.c
>> @@ -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.

> 
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> 


Re: [PATCH] target/s390x: Fix a typo in s390_cpu_class_init()
Posted by Richard Henderson 6 days, 10 hours ago
On 3/23/25 08:30, Philippe Mathieu-Daudé wrote:
> Fixes: 41868f846d2 ("s390x/cpumodel: "host" and "qemu" as CPU subclasses")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   target/s390x/cpu.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
> index d73142600bf..1f75629ddc2 100644
> --- a/target/s390x/cpu.c
> +++ b/target/s390x/cpu.c
> @@ -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;

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~