trivial: Fix superfluous trailing semicolon
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
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
@@ -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
Re: [PATCH 1/4] accel/kvm/kvm-all: Fix superfluous trailing semicolon
Quoted 11 lines · Zhao Liu
Signed-off-by Zhao Liu <[email protected]>--- accel/kvm/kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)accel/kvm/kvm-all.c +0
-0
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
Re: [PATCH 1/4] accel/kvm/kvm-all: Fix superfluous trailing semicolon
In reply to Zhao LiuQuoted 10 lines · Zhao Liu
Signed-off-by Zhao Liu <[email protected]>--- accel/kvm/kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)accel/kvm/kvm-all.c +0
-0
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
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
@@ -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
Re: [PATCH 2/4] hw/i386/x86: Fix superfluous trailing semicolon
Quoted 20 lines · Zhao Liu
Signed-off-by Zhao Liu <[email protected]>--- hw/i386/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/x86.c +1
-2@@ -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
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
@@ -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
Re: [PATCH 3/4] util/oslib-posix: Fix superfluous trailing semicolon
Quoted 20 lines · Zhao Liu
Signed-off-by Zhao Liu <[email protected]>--- util/oslib-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)util/oslib-posix.c +1
-2@@ -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
Re: [PATCH 3/4] util/oslib-posix: Fix superfluous trailing semicolon
In reply to Zhao LiuQuoted 1 line · Zhao Liu
Signed-off-by Zhao Liu <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
PATCH 4/4 target/hexagon/imported/mmvec: Fix superfluous trailing semicolon
In reply to Zhao LiuFix 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
@@ -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
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.
Cc Brian Cain <[email protected]>Signed-off-by Zhao Liu <[email protected]>--- target/hexagon/imported/mmvec/ext.idef | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/hexagon/imported/mmvec/ext.idef +1
-2@@ -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
Re: [PATCH 4/4] target/hexagon/imported/mmvec: Fix superfluous trailing semicolon
In reply to Zhao LiuQuoted 5 lines · Zhao Liu
Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.
Cc Brian Cain <[email protected]>Signed-off-by Zhao Liu <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Re: [PATCH 4/4] target/hexagon/imported/mmvec: Fix superfluous trailing semicolon
In reply to Zhao LiuQuoted 5 lines · Zhao Liu
Fix the superfluous trailing semicolon in target/hexagon/imported/mmvec/ ext.idef.
Cc Brian Cain <[email protected]>Signed-off-by Zhao Liu <[email protected]>
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@@ -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); } }
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.
Cc Brian Cain <[email protected]>Signed-off-by Zhao Liu <[email protected]>Reviewed-by Brian Cain <[email protected]>
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@@ -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); } }
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
Cc Brian Cain <[email protected]>Signed-off-by Zhao Liu <[email protected]>Reviewed-by Brian Cain <[email protected]>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@@ -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); }
}
Michael Tokarev
AppliedQuoted 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