Skip to contentSkip to conversation

trivial: Fix superfluous trailing semicolon

PATCH Applied Zhao Liu 5 participants 16 messages Jul 4, 2024 – Jul 15, 2024

lore
Share & tools
lore

Zhao Liu

author
#0 lore raw

cover trivial: Fix superfluous trailing semicolon

Hi,

I checked the files in QEMU to fix these few errors about "superfluous trailing semicolon" to honor the requirement in checkpatch.pl.

Thanks and Best Regards,
Zhao
---
Zhao Liu (4):
accel/kvm/kvm-all: Fix superfluous trailing semicolon hw/i386/x86: Fix superfluous trailing semicolon util/oslib-posix: Fix superfluous trailing semicolon target/hexagon/imported/mmvec: Fix superfluous trailing semicolon

 accel/kvm/kvm-all.c                    | 2 +-
 hw/i386/x86.c                          | 2 +-
 target/hexagon/imported/mmvec/ext.idef | 2 +-
 util/oslib-posix.c                     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 1/4 accel/kvm/kvm-all: Fix superfluous trailing semicolon

---
 accel/kvm/kvm-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
accel/kvm/kvm-all.c +1 -1
index 2b4ab896794b..64bf47a03300 100644
@@ -3878,7 +3878,7 @@ static StatsList *add_kvmstat_entry(struct kvm_stats_desc *pdesc,
     /* Alloc and populate data list */
     stats = g_new0(Stats, 1);
     stats->name = g_strdup(pdesc->name);
-    stats->value = g_new0(StatsValue, 1);;
+    stats->value = g_new0(StatsValue, 1);
 
     if ((pdesc->flags & KVM_STATS_UNIT_MASK) == KVM_STATS_UNIT_BOOLEAN) {
         stats->value->u.boolean = *stats_data;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] accel/kvm/kvm-all: Fix superfluous trailing semicolon

Quoted 11 lines · Zhao Liu
---
 accel/kvm/kvm-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
accel/kvm/kvm-all.c +0 -0
index 2b4ab896794b..64bf47a03300 100644

accel/kvm/kvm-all.c static StatsList *add_kvmstat_entry(struct kvm_stats_desc *pdesc, · line 3884

Quoted 8 lines
accel/kvm/kvm-all.c +1 -1
@@ -3878,7 +3878,7 @@ static StatsList *add_kvmstat_entry(struct kvm_stats_desc *pdesc,
     /* Alloc and populate data list */
     stats = g_new0(Stats, 1);
     stats->name = g_strdup(pdesc->name);
-    stats->value = g_new0(StatsValue, 1);;
+    stats->value = g_new0(StatsValue, 1);
 
     if ((pdesc->flags & KVM_STATS_UNIT_MASK) == KVM_STATS_UNIT_BOOLEAN) {
         stats->value->u.boolean = *stats_data;

thanks
-- PMM

Reviewed-by on v1 1/4
#3 lore raw

Re: [PATCH 1/4] accel/kvm/kvm-all: Fix superfluous trailing semicolon

In reply to Zhao Liu
Quoted 10 lines · Zhao Liu
---
 accel/kvm/kvm-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
accel/kvm/kvm-all.c +0 -0
index 2b4ab896794b..64bf47a03300 100644

accel/kvm/kvm-all.c static StatsList *add_kvmstat_entry(struct kvm_stats_desc *pdesc, · line 3884

Quoted 8 lines
accel/kvm/kvm-all.c +1 -1
@@ -3878,7 +3878,7 @@ static StatsList *add_kvmstat_entry(struct kvm_stats_desc *pdesc,
     /* Alloc and populate data list */
     stats = g_new0(Stats, 1);
     stats->name = g_strdup(pdesc->name);
-    stats->value = g_new0(StatsValue, 1);;
+    stats->value = g_new0(StatsValue, 1);
 
     if ((pdesc->flags & KVM_STATS_UNIT_MASK) == KVM_STATS_UNIT_BOOLEAN) {
         stats->value->u.boolean = *stats_data;
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
author
#4 lore raw

PATCH 2/4 hw/i386/x86: Fix superfluous trailing semicolon

In reply to Zhao Liu
---
 hw/i386/x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/x86.c +1 -1
index a4aa8e081098..01fc5e656272 100644
@@ -242,7 +242,7 @@ static void x86_machine_get_pit(Object *obj, Visitor *v, const char *name,
 static void x86_machine_set_pit(Object *obj, Visitor *v, const char *name,
                                     void *opaque, Error **errp)
 {
-    X86MachineState *x86ms = X86_MACHINE(obj);;
+    X86MachineState *x86ms = X86_MACHINE(obj);
 
     visit_type_OnOffAuto(v, name, &x86ms->pit, errp);
 }
Signature · 1 line
2.34.1
Reviewed-by on v1 2/4
#5 lore raw

Re: [PATCH 2/4] hw/i386/x86: Fix superfluous trailing semicolon

Quoted 20 lines · Zhao Liu
---
 hw/i386/x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/x86.c +1 -2
index a4aa8e081098..01fc5e656272 100644
@@ -242,7 +242,7 @@ static void x86_machine_get_pit(Object *obj, Visitor *v, const char *name,
 static void x86_machine_set_pit(Object *obj, Visitor *v, const char *name,
                                     void *opaque, Error **errp)
 {
-    X86MachineState *x86ms = X86_MACHINE(obj);;
+    X86MachineState *x86ms = X86_MACHINE(obj);
 
     visit_type_OnOffAuto(v, name, &x86ms->pit, errp);
 }
--
Quoted 1 line

2.34.1

thanks
-- PMM

author
#6 lore raw

PATCH 3/4 util/oslib-posix: Fix superfluous trailing semicolon

In reply to Zhao Liu
---
 util/oslib-posix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/oslib-posix.c +1 -1
index e76441695bdc..b090fe0eed0d 100644
@@ -263,7 +263,7 @@ int qemu_socketpair(int domain, int type, int protocol, int sv[2])
         return ret;
     }
 #endif
-    ret = socketpair(domain, type, protocol, sv);;
+    ret = socketpair(domain, type, protocol, sv);
     if (ret == 0) {
         qemu_set_cloexec(sv[0]);
         qemu_set_cloexec(sv[1]);
Signature · 1 line
2.34.1
Reviewed-by on v1 3/4
#7 lore raw

Re: [PATCH 3/4] util/oslib-posix: Fix superfluous trailing semicolon

Quoted 20 lines · Zhao Liu
---
 util/oslib-posix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/oslib-posix.c +1 -2
index e76441695bdc..b090fe0eed0d 100644
@@ -263,7 +263,7 @@ int qemu_socketpair(int domain, int type, int protocol, int sv[2])
         return ret;
     }
 #endif
-    ret = socketpair(domain, type, protocol, sv);;
+    ret = socketpair(domain, type, protocol, sv);
     if (ret == 0) {
         qemu_set_cloexec(sv[0]);
         qemu_set_cloexec(sv[1]);
--
Quoted 2 lines

2.34.1

thanks
-- PMM

author
#9 lore raw

PATCH 4/4 target/hexagon/imported/mmvec: Fix superfluous trailing semicolon

In reply to Zhao Liu

Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.

---
 target/hexagon/imported/mmvec/ext.idef | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/hexagon/imported/mmvec/ext.idef +1 -1
index 98daabfb07c4..03d31f6181d7 100644
@@ -2855,7 +2855,7 @@ EXTINSN(V6_vscattermhw_add,  "vscatter(Rt32,Mu2,Vvv32.w).h+=Vw32", ATTRIBS(A_EXT
     fVALIGN(RtV, element_size);
     fVFOREACH(32, i) {
         for(j = 0; j < 2; j++) {
-             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);;
+             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);
              fVLOG_VTCM_HALFWORD_INCREMENT_DV(EA,VvvV.v[j].uw[i],VwV,(2*i+j),i,j,ALIGNMENT,MuV);
         }
     }
Signature · 1 line
2.34.1
#10 lore raw

Re: [PATCH 4/4] target/hexagon/imported/mmvec: Fix superfluous trailing semicolon

Quoted 24 lines · Zhao Liu

Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.

---
 target/hexagon/imported/mmvec/ext.idef | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/hexagon/imported/mmvec/ext.idef +1 -2
index 98daabfb07c4..03d31f6181d7 100644
@@ -2855,7 +2855,7 @@ EXTINSN(V6_vscattermhw_add,  "vscatter(Rt32,Mu2,Vvv32.w).h+=Vw32", ATTRIBS(A_EXT
     fVALIGN(RtV, element_size);
     fVFOREACH(32, i) {
         for(j = 0; j < 2; j++) {
-             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);;
+             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);
              fVLOG_VTCM_HALFWORD_INCREMENT_DV(EA,VvvV.v[j].uw[i],VwV,(2*i+j),i,j,ALIGNMENT,MuV);
         }
     }
--
Quoted 1 line

2.34.1

As a change this is obviously fine, but given the "imported" in the pathname I don't know if this is something that should be fixed in whatever upstream source we got this from instead or as well. Brian ?

thanks
-- PMM

Reviewed-by on v1 4/4
#12 lore raw

Re: [PATCH 4/4] target/hexagon/imported/mmvec: Fix superfluous trailing semicolon

In reply to Zhao Liu
Quoted 5 lines · Zhao Liu

Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.

Quoted 17 lines
---
  target/hexagon/imported/mmvec/ext.idef | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/hexagon/imported/mmvec/ext.idef +1 -1
index 98daabfb07c4..03d31f6181d7 100644
@@ -2855,7 +2855,7 @@ EXTINSN(V6_vscattermhw_add,  "vscatter(Rt32,Mu2,Vvv32.w).h+=Vw32", ATTRIBS(A_EXT
      fVALIGN(RtV, element_size);
      fVFOREACH(32, i) {
          for(j = 0; j < 2; j++) {
-             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);;
+             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);
               fVLOG_VTCM_HALFWORD_INCREMENT_DV(EA,VvvV.v[j].uw[i],VwV,(2*i+j),i,j,ALIGNMENT,MuV);
          }
      }
#13 lore raw

Re: [PATCH 4/4] target/hexagon/imported/mmvec: Fix superfluous trailing semicolon

Quoted 9 lines · Brian Cain
Quoted 5 lines · Zhao Liu

Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.

Brian, is it okay to fix this in something "imported" ? I realize you added your R-b, but do you realize it's "imported"?

Thanks,

/mjt

Quoted 18 lines
Quoted 17 lines

---
  target/hexagon/imported/mmvec/ext.idef | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
target/hexagon/imported/mmvec/ext.idef +1 -1
index 98daabfb07c4..03d31f6181d7 100644
@@ -2855,7 +2855,7 @@ EXTINSN(V6_vscattermhw_add,  "vscatter(Rt32,Mu2,Vvv32.w).h+=Vw32", ATTRIBS(A_EXT
       fVALIGN(RtV, element_size);
       fVFOREACH(32, i) {
           for(j = 0; j < 2; j++) {
-             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);;
+             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);
                fVLOG_VTCM_HALFWORD_INCREMENT_DV(EA,VvvV.v[j].uw[i],VwV,(2*i+j),i,j,ALIGNMENT,MuV);
           }
       }
#14 lore raw

Re: [PATCH 4/4] target/hexagon/imported/mmvec: Fix superfluous trailing semicolon

Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Brian Cain
Quoted 3 lines · Zhao Liu

Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Brian, is it okay to fix this in something "imported" ? I realize you added your R-b, but do you realize it's "imported"?

Sure, it's fine - I'll just have to take extra care not to re-introduce issues like these when making updates.  I can try and work with the original sources to make sure it's addressed there.

Quoted 24 lines

Thanks,

/mjt

Quoted 19 lines
Quoted 18 lines

---
  target/hexagon/imported/mmvec/ext.idef | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
target/hexagon/imported/mmvec/ext.idef +0 -0
index 98daabfb07c4..03d31f6181d7 100644
@@ -2855,7 +2855,7 @@ EXTINSN(V6_vscattermhw_add, 

"vscatter(Rt32,Mu2,Vvv32.w).h+=Vw32", ATTRIBS(A_EXT
      fVALIGN(RtV, element_size);
      fVFOREACH(32, i) {
          for(j = 0; j < 2; j++) {
-             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT);;
+             EA =  RtV + fVALIGN(VvvV.v[j].uw[i],ALIGNMENT); fVLOG_VTCM_HALFWORD_INCREMENT_DV(EA,VvvV.v[j].uw[i],VwV,(2*i+j),i,j,ALIGNMENT,MuV); }
      }

#15 lore raw
In reply to Zhao Liu
Quoted 4 lines · Zhao Liu

Hi,

I checked the files in QEMU to fix these few errors about "superfluous trailing semicolon" to honor the requirement in checkpatch.pl.

Applied to the trivial-patches queue (pending confirmation from Brian for the 4th patch).

Thanks,

/mjt

Signature · 4 lines
GPG Key transition (from rsa2048 to rsa4096) since 2024-04-24.
New key: rsa4096/61AD3D98ECDF2C8E  9D8B E14E 3F2A 9DD7 9199  28F1 61AD 3D98 ECDF 2C8E
Old key: rsa2048/457CE0A0804465C5  6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
Transition statement: http://www.corpit.ru/mjt/gpg-transition-2024.txt