Spelling fixes in comments and documentation
PATCH 1/1 Spelling fixes in comments and documentation
These wrong spellings were detected by codespell:
* successully -> successfully
* alot -> a lot
* wanna -> want to
* infomation -> information
* occured -> occurred
--- docs/specs/ppc-spapr-hcalls.txt | 2 +- docs/usb2.txt | 4 ++-- hw/xen_pt.h | 4 ++-- hw/xen_pt_config_init.c | 14 +++++++------- qemu-img.c | 2 +- qemu-img.texi | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-)
docs/specs/ppc-spapr-hcalls.txt +1 -1
@@ -31,7 +31,7 @@ Arguments: Returns: - H_SUCCESS : Successully called the RTAS function (RTAS result + H_SUCCESS : Successfully called the RTAS function (RTAS result will have been stored in the parameter block) H_PARAMETER : Unknown token
docs/usb2.txt +2 -2
@@ -58,11 +58,11 @@ try ... xhci controller support ----------------------- -There also is xhci host controller support available. It got alot +There also is xhci host controller support available. It got a lot less testing than ehci and there are a bunch of known limitations, so ehci may work better for you. On the other hand the xhci hardware design is much more virtualization-friendly, thus xhci emulation uses -less ressources (especially cpu). If you wanna give xhci a try +less ressources (especially cpu). If you want to give xhci a try use this to add the host controller ... qemu -device nec-usb-xhci,id=xhci
hw/xen_pt.h +2 -2
@@ -96,7 +96,7 @@ typedef struct XenPTRegion {* - do NOT use ALL F for init_val, otherwise the tbl will not be registered. */ -/* emulated register infomation */ +/* emulated register information */ struct XenPTRegInfo {uint32_t offset;uint32_t size;
@@ -140,7 +140,7 @@ typedef int (*xen_pt_reg_size_init_fn) (XenPCIPassthroughState *, const XenPTRegGroupInfo *, uint32_t base_offset, uint8_t *size); -/* emulated register group infomation */ +/* emulated register group information */ struct XenPTRegGroupInfo {uint8_t grp_id;XenPTRegisterGroupType grp_type;
hw/xen_pt_config_init.c +7 -7
@@ -562,7 +562,7 @@ static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* Header Type0 reg static infomation table */ +/* Header Type0 reg static information table */ static XenPTRegInfo xen_pt_emu_reg_header0[] = {/* Vendor ID reg */ {
@@ -753,7 +753,7 @@ static XenPTRegInfo xen_pt_emu_reg_header0[] = {* Vital Product Data Capability */ -/* Vital Product Data Capability Structure reg static infomation table */ +/* Vital Product Data Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_vpd[] = { { .offset =PCI_CAP_LIST_NEXT ,
@@ -775,7 +775,7 @@ static XenPTRegInfo xen_pt_emu_reg_vpd[] = {* Vendor Specific Capability */ -/* Vendor Specific Capability Structure reg static infomation table */ +/* Vendor Specific Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_vendor[] = { { .offset =PCI_CAP_LIST_NEXT ,
@@ -866,7 +866,7 @@ static int xen_pt_linkctrl2_reg_init(XenPCIPassthroughState *s,return 0 ; } -/* PCI Express Capability Structure reg static infomation table */ +/* PCI Express Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_pcie[] = {/* Next Pointer reg */ {
@@ -981,7 +981,7 @@ static int xen_pt_pmcsr_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* Power Management Capability reg static infomation table */ +/* Power Management Capability reg static information table */ static XenPTRegInfo xen_pt_emu_reg_pm[] = {/* Next Pointer reg */ {
@@ -1259,7 +1259,7 @@ static int xen_pt_msgdata_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* MSI Capability Structure reg static infomation table */ +/* MSI Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_msi[] = {/* Next Pointer reg */ {
@@ -1396,7 +1396,7 @@ static int xen_pt_msixctrl_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* MSI-X Capability Structure reg static infomation table */ +/* MSI-X Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_msix[] = {/* Next Pointer reg */ {
qemu-img.c +1 -1
@@ -89,7 +89,7 @@ static void help(void)" '-r' tries to repair any inconsistencies that are found during the check.\n" " '-r leaks' repairs only cluster leaks, whereas '-r all' fixes all\n" " kinds of errors, with a higher risk of choosing the wrong fix or\n" -" hiding corruption that has already occured.\n" +" hiding corruption that has already occurred.\n" "\n" "Parameters to snapshot subcommand:\n" " 'snapshot' is the name of the snapshot to create, apply or delete\n"
qemu-img.texi +1 -1
@@ -77,7 +77,7 @@ Perform a consistency check on the disk image @var{filename}. If @code{-r} is specified, qemu-img tries to repair any inconsistencies found during the check. @code{-r leaks} repairs only cluster leaks, whereas @code{-r all} fixes all kinds of errors, with a higher risk of choosing the -wrong fix or hiding corruption that has already occured. +wrong fix or hiding corruption that has already occurred. Only the formats @code{qcow2}, @code{qed} and @code{vdi} support consistency checks.
Signature · 1 line
1.7.0.4
PATCH 1/1 Fix spelling (licenced -> licensed) in GPL
The patch also fixes the case of "written".
--- hw/imx_avic.c | 4 ++-- hw/imx_timer.c | 4 ++-- hw/kzm.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
hw/imx_avic.c +2 -2
@@ -6,9 +6,9 @@* * Copyright (c) 2008 OKL * Copyright (c) 2011 NICTA Pty Ltd -* Originally Written by Hans Jiang +* Originally written by Hans Jiang * -* This code is licenced under the GPL version 2 or later. See +* This code is licensed under the GPL version 2 or later. See * the COPYING file in the top-level directory. * * TODO: implement vectors.
hw/imx_timer.c +2 -2
@@ -3,10 +3,10 @@* * Copyright (c) 2008 OK Labs * Copyright (c) 2011 NICTA Pty Ltd -* Originally Written by Hans Jiang +* Originally written by Hans Jiang * Updated by Peter Chubb * -* This code is licenced under GPL version 2 or later. See +* This code is licensed under GPL version 2 or later. See * the COPYING file in the top-level directory. * */
hw/kzm.c +1 -1
@@ -5,7 +5,7 @@* Written by Hans at OK-Labs * Updated by Peter Chubb. * -* This code is licenced under the GPL, version 2 or later. +* This code is licensed under the GPL, version 2 or later. * See the file `COPYING' in the top level directory. * * It (partially) emulates a Kyoto Microcomputer
Signature · 1 line
1.7.0.4
Re: [Qemu-devel] [PATCH] Fix spelling (licenced -> licensed) in GPL
Ping?
Am 10.08.2012 22:03, schrieb Stefan Weil:
Quoted 55 lines
The patch also fixes the case of "written".
Signed-off-by Stefan Weil <[email protected]>--- hw/imx_avic.c | 4 ++-- hw/imx_timer.c | 4 ++-- hw/kzm.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)hw/imx_avic.c +2
-2@@ -6,9 +6,9 @@* * Copyright (c) 2008 OKL * Copyright (c) 2011 NICTA Pty Ltd -* Originally Written by Hans Jiang +* Originally written by Hans Jiang * -* This code is licenced under the GPL version 2 or later. See +* This code is licensed under the GPL version 2 or later. See * the COPYING file in the top-level directory. * * TODO: implement vectors. hw/imx_timer.c +2
-2@@ -3,10 +3,10 @@* * Copyright (c) 2008 OK Labs * Copyright (c) 2011 NICTA Pty Ltd -* Originally Written by Hans Jiang +* Originally written by Hans Jiang * Updated by Peter Chubb * -* This code is licenced under GPL version 2 or later. See +* This code is licensed under GPL version 2 or later. See * the COPYING file in the top-level directory. * */ hw/kzm.c +1
-1@@ -5,7 +5,7 @@* Written by Hans at OK-Labs * Updated by Peter Chubb. * -* This code is licenced under the GPL, version 2 or later. +* This code is licensed under the GPL, version 2 or later. * See the file `COPYING' in the top level directory. * * It (partially) emulates a Kyoto Microcomputer
Stefan Hajnoczi
AppliedRe: [Qemu-devel] [PATCH] Fix spelling (licenced -> licensed) in GPL
In reply to Stefan WeilQuoted 8 lines · Stefan Weil
The patch also fixes the case of "written".
Signed-off-by Stefan Weil <[email protected]>--- hw/imx_avic.c | 4 ++-- hw/imx_timer.c | 4 ++-- hw/kzm.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
PATCH 1/1 srp: Don't use QEMU_PACKED for single elements of a structured type
In reply to Stefan WeilQEMU_PACKED results in a MinGW compiler warning when it is used for single structure elements:
warning: 'gcc_struct' attribute ignored
Using QEMU_PACKED for the whole structure avoids the compiler warning without changing the memory layout.
--- hw/srp.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
hw/srp.h +4 -4
@@ -177,13 +177,13 @@ struct srp_tsk_mgmt {uint8_t reserved1[6 ];uint64_t tag;uint8_t reserved2[4 ]; - uint64_t lun QEMU_PACKED; +uint64_t lun;uint8_t reserved3[2 ];uint8_t tsk_mgmt_func;uint8_t reserved4;uint64_t task_tag;uint8_t reserved5[8 ]; -}; +}QEMU_PACKED ;/* * We need the packed attribute because the SRP spec only aligns the
@@ -198,14 +198,14 @@ struct srp_cmd {uint8_t data_in_desc_cnt;uint64_t tag;uint8_t reserved2[4 ]; - uint64_t lun QEMU_PACKED; +uint64_t lun;uint8_t reserved3;uint8_t task_attr;uint8_t reserved4;uint8_t add_cdb_len;uint8_t cdb[16 ];uint8_t add_data[0 ]; -}; +}QEMU_PACKED ;enum {SRP_RSP_FLAG_RSPVALID =1 <<0 ,
Signature · 1 line
1.7.0.4
Re: [Qemu-devel] [Qemu-trivial] [PATCH] srp: Don't use QEMU_PACKED for single elements of a structured type
Quoted 7 lines · Stefan Weil
QEMU_PACKEDresults in a MinGW compiler warning when it is used for single structure elements:warning: '
gcc_struct' attribute ignoredUsing
QEMU_PACKEDfor the whole structure avoids the compiler warning without changing the memory layout.
Quick link for other reviewers:
http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Type-Attributes.html#Type-Attributes
Quoted 13 lines
Signed-off-by Stefan Weil <[email protected]>--- hw/srp.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)hw/srp.h +0
-0@@ -177,13 +177,13 @@ struct srp_tsk_mgmt {uint8_t reserved1[6 ];uint64_t tag;
hw/srp.h struct srp_tsk_mgmt { · line 186
Quoted 10 lines
hw/srp.h +2
-2uint8_t reserved2[4 ]; - uint64_t lun QEMU_PACKED; +uint64_t lun;uint8_t reserved3[2 ];uint8_t tsk_mgmt_func;uint8_t reserved4;uint64_t task_tag;uint8_t reserved5[8 ]; -}; +}QEMU_PACKED ;
Here I actually see a difference for the uint64_t task_tag field. Previously it was not packed, now it is packed and because it has 4 * uint8_t before it there will be a difference in layout.
Looking at how QEMU accesses srp_tsk_mgmt, I think we're safe because we never actually access task_tag?
Ben: Any thoughts on this patch?
Stefan
Re: [Qemu-devel] [Qemu-trivial] [PATCH] srp: Don't use QEMU_PACKED for single elements of a structured type
Am 15.08.2012 16:16, schrieb Stefan Hajnoczi:
Quoted 37 lines · Stefan Weil
Quoted 7 lines
QEMU_PACKEDresults in a MinGW compiler warning when it is used for single structure elements:warning: '
gcc_struct' attribute ignoredUsing
QEMU_PACKEDfor the whole structure avoids the compiler warning without changing the memory layout.Quick link for other reviewers:
http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Type-Attributes.html#Type-AttributesQuoted 12 lines
Signed-off-by Stefan Weil <[email protected]>--- hw/srp.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)hw/srp.h +0
-0@@ -177,13 +177,13 @@ struct srp_tsk_mgmt {uint8_t reserved1[6 ];uint64_t tag;hw/srp.h struct srp_tsk_mgmt { · line 186
Quoted 10 lines
hw/srp.h +2
-2uint8_t reserved2[4 ]; - uint64_t lun QEMU_PACKED; +uint64_t lun;uint8_t reserved3[2 ];uint8_t tsk_mgmt_func;uint8_t reserved4;uint64_t task_tag;uint8_t reserved5[8 ]; -}; +}QEMU_PACKED ;Here I actually see a difference for the
uint64_ttask_tagfield. Previously it was not packed, now it is packed and because it has 4 *uint8_tbefore it there will be a difference in layout.
Quoted 6 lines
Looking at how QEMU accesses
srp_tsk_mgmt, I think we're safe because we never actually accesstask_tag?Ben: Any thoughts on this patch?
Stefan
4 * uint8_t + 4 bytes from the packed lun, so there is no change for task_tag, it's always on a 8 byte boundary!
Regards,
Stefan
Re: [Qemu-devel] [Qemu-trivial] [PATCH] srp: Don't use QEMU_PACKED for single elements of a structured type
Quoted 41 lines · Stefan Weil
Am 15.08.2012 16:16, schrieb Stefan Hajnoczi:
Quoted 40 lines · Stefan Weil
Quoted 7 lines
QEMU_PACKEDresults in a MinGW compiler warning when it is used for single structure elements:warning: '
gcc_struct' attribute ignoredUsing
QEMU_PACKEDfor the whole structure avoids the compiler warning without changing the memory layout.Quick link for other reviewers:
http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Type-Attributes.html#Type-AttributesQuoted 12 lines
Signed-off-by Stefan Weil <[email protected]>--- hw/srp.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)hw/srp.h +0
-0@@ -177,13 +177,13 @@ struct srp_tsk_mgmt {uint8_t reserved1[6 ];uint64_t tag;hw/srp.h struct srp_tsk_mgmt { · line 186
Quoted 10 lines
hw/srp.h +2
-2uint8_t reserved2[4 ]; - uint64_t lun QEMU_PACKED; +uint64_t lun;uint8_t reserved3[2 ];uint8_t tsk_mgmt_func;uint8_t reserved4;uint64_t task_tag;uint8_t reserved5[8 ]; -}; +}QEMU_PACKED ;Here I actually see a difference for the
uint64_ttask_tagfield. Previously it was not packed, now it is packed and because it has 4 *uint8_tbefore it there will be a difference in layout.Looking at how QEMU accesses
srp_tsk_mgmt, I think we're safe because we never actually accesstask_tag?
Quoted 6 lines
Quoted 3 lines
Ben: Any thoughts on this patch?
Stefan
4 *
uint8_t+ 4 bytes from the packed lun, so there is no change fortask_tag, it's always on a 8 byte boundary!
Ah, yes, I see it now! Glad we're switching to struct-level packing :).
Stefan
Ping?
Am 10.08.2012 22:03, schrieb Stefan Weil:
Quoted 168 lines
These wrong spellings were detected by codespell:
* successully -> successfully
* alot -> a lot
* wanna -> want to
* infomation -> information
* occured -> occurred
Signed-off-by Stefan Weil <[email protected]>--- docs/specs/ppc-spapr-hcalls.txt | 2 +- docs/usb2.txt | 4 ++-- hw/xen_pt.h | 4 ++-- hw/xen_pt_config_init.c | 14 +++++++------- qemu-img.c | 2 +- qemu-img.texi | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-)docs/specs/ppc-spapr-hcalls.txt +1
-1@@ -31,7 +31,7 @@ Arguments: Returns: - H_SUCCESS : Successully called the RTAS function (RTAS result + H_SUCCESS : Successfully called the RTAS function (RTAS result will have been stored in the parameter block) H_PARAMETER : Unknown tokendocs/usb2.txt +2
-2@@ -58,11 +58,11 @@ try ... xhci controller support ----------------------- -There also is xhci host controller support available. It got alot +There also is xhci host controller support available. It got a lot less testing than ehci and there are a bunch of known limitations, so ehci may work better for you. On the other hand the xhci hardware design is much more virtualization-friendly, thus xhci emulation uses -less ressources (especially cpu). If you wanna give xhci a try +less ressources (especially cpu). If you want to give xhci a try use this to add the host controller ... qemu -device nec-usb-xhci,id=xhcihw/xen_pt.h +2
-2@@ -96,7 +96,7 @@ typedef struct XenPTRegion {* - do NOT use ALL F for init_val, otherwise the tbl will not be registered. */ -/* emulated register infomation */ +/* emulated register information */ struct XenPTRegInfo {uint32_t offset;uint32_t size;@@ -140,7 +140,7 @@ typedef int (*xen_pt_reg_size_init_fn) (XenPCIPassthroughState *, const XenPTRegGroupInfo *, uint32_t base_offset, uint8_t *size); -/* emulated register group infomation */ +/* emulated register group information */ struct XenPTRegGroupInfo {uint8_t grp_id;XenPTRegisterGroupType grp_type;hw/xen_pt_config_init.c +7
-7@@ -562,7 +562,7 @@ static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* Header Type0 reg static infomation table */ +/* Header Type0 reg static information table */ static XenPTRegInfo xen_pt_emu_reg_header0[] = {/* Vendor ID reg */ {@@ -753,7 +753,7 @@ static XenPTRegInfo xen_pt_emu_reg_header0[] = {* Vital Product Data Capability */ -/* Vital Product Data Capability Structure reg static infomation table */ +/* Vital Product Data Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_vpd[] = { { .offset =PCI_CAP_LIST_NEXT ,@@ -775,7 +775,7 @@ static XenPTRegInfo xen_pt_emu_reg_vpd[] = {* Vendor Specific Capability */ -/* Vendor Specific Capability Structure reg static infomation table */ +/* Vendor Specific Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_vendor[] = { { .offset =PCI_CAP_LIST_NEXT ,@@ -866,7 +866,7 @@ static int xen_pt_linkctrl2_reg_init(XenPCIPassthroughState *s,return 0 ; } -/* PCI Express Capability Structure reg static infomation table */ +/* PCI Express Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_pcie[] = {/* Next Pointer reg */ {@@ -981,7 +981,7 @@ static int xen_pt_pmcsr_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* Power Management Capability reg static infomation table */ +/* Power Management Capability reg static information table */ static XenPTRegInfo xen_pt_emu_reg_pm[] = {/* Next Pointer reg */ {@@ -1259,7 +1259,7 @@ static int xen_pt_msgdata_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* MSI Capability Structure reg static infomation table */ +/* MSI Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_msi[] = {/* Next Pointer reg */ {@@ -1396,7 +1396,7 @@ static int xen_pt_msixctrl_reg_write(XenPCIPassthroughState *s,return 0 ; } -/* MSI-X Capability Structure reg static infomation table */ +/* MSI-X Capability Structure reg static information table */ static XenPTRegInfo xen_pt_emu_reg_msix[] = {/* Next Pointer reg */ {qemu-img.c +1
-1@@ -89,7 +89,7 @@ static void help(void)" '-r' tries to repair any inconsistencies that are found during the check.\n" " '-r leaks' repairs only cluster leaks, whereas '-r all' fixes all\n" " kinds of errors, with a higher risk of choosing the wrong fix or\n" -" hiding corruption that has already occured.\n" +" hiding corruption that has already occurred.\n" "\n" "Parameters to snapshot subcommand:\n" " 'snapshot' is the name of the snapshot to create, apply or delete\n" qemu-img.texi +1
-1@@ -77,7 +77,7 @@ Perform a consistency check on the disk image @var{filename}. If @code{-r} is specified, qemu-img tries to repair any inconsistencies found during the check. @code{-r leaks} repairs only cluster leaks, whereas @code{-r all} fixes all kinds of errors, with a higher risk of choosing the -wrong fix or hiding corruption that has already occured. +wrong fix or hiding corruption that has already occurred. Only the formats @code{qcow2}, @code{qed} and @code{vdi} support consistency checks.
docs/usb2.txt try ... · line 61
Quoted 10 lines · Stefan Weil
docs/usb2.txt +1
-1@@ -58,11 +58,11 @@ try ... xhci controller support ----------------------- -There also is xhci host controller support available. It got alot +There also is xhci host controller support available. It got a lot
"is also"
docs/usb2.txt try ... · line 65
Quoted 5 lines
docs/usb2.txt +1
-1less testing than ehci and there are a bunch of known limitations, so ehci may work better for you. On the other hand the xhci hardware design is much more virtualization-friendly, thus xhci emulation uses -less ressources (especially cpu). If you wanna give xhci a try +less ressources (especially cpu). If you want to give xhci a try
"resources"
-- PMM
Stefan Hajnoczi
AppliedQuoted 13 lines · Stefan Weil
These wrong spellings were detected by codespell:
* successully -> successfully
* alot -> a lot
* wanna -> want to
* infomation -> information
* occured -> occurred
Signed-off-by Stefan Weil <[email protected]>
Quoted 8 lines
--- docs/specs/ppc-spapr-hcalls.txt | 2 +- docs/usb2.txt | 4 ++-- hw/xen_pt.h | 4 ++-- hw/xen_pt_config_init.c | 14 +++++++------- qemu-img.c | 2 +- qemu-img.texi | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-)
Added Peter's suggestions.
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan