2023-12-21 03:01:30

by YouHong Li

[permalink] [raw]
Subject: [PATCH] drivers/block/xen-blkback/common.h: Fix spelling typo in comment

From: liyouhong <[email protected]>

Fix spelling typo in comment.

Reported-by: k2ci <[email protected]>
Signed-off-by: liyouhong <[email protected]>

diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index 40f67bfc052d..c64253d3bb40 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -132,7 +132,7 @@ struct blkif_x86_32_request {
struct blkif_x86_64_request_rw {
uint8_t nr_segments; /* number of segments */
blkif_vdev_t handle; /* only for read/write requests */
- uint32_t _pad1; /* offsetof(blkif_reqest..,u.rw.id)==8 */
+ uint32_t _pad1; /* offsetof(blkif_request..,u.rw.id)==8 */
uint64_t id;
blkif_sector_t sector_number;/* start sector idx on disk (r/w only) */
struct blkif_request_segment seg[BLKIF_MAX_SEGMENTS_PER_REQUEST];
--
2.34.1



2023-12-21 06:55:35

by Juergen Gross

[permalink] [raw]
Subject: Re: [PATCH] drivers/block/xen-blkback/common.h: Fix spelling typo in comment

On 21.12.23 04:00, YouHong Li wrote:
> From: liyouhong <[email protected]>
>
> Fix spelling typo in comment.
>
> Reported-by: k2ci <[email protected]>
> Signed-off-by: liyouhong <[email protected]>
>
> diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
> index 40f67bfc052d..c64253d3bb40 100644
> --- a/drivers/block/xen-blkback/common.h
> +++ b/drivers/block/xen-blkback/common.h
> @@ -132,7 +132,7 @@ struct blkif_x86_32_request {
> struct blkif_x86_64_request_rw {
> uint8_t nr_segments; /* number of segments */
> blkif_vdev_t handle; /* only for read/write requests */
> - uint32_t _pad1; /* offsetof(blkif_reqest..,u.rw.id)==8 */
> + uint32_t _pad1; /* offsetof(blkif_request..,u.rw.id)==8 */

Please keep the "*/" aligned with the ones above and below.

> uint64_t id;
> blkif_sector_t sector_number;/* start sector idx on disk (r/w only) */
> struct blkif_request_segment seg[BLKIF_MAX_SEGMENTS_PER_REQUEST];


Juergen


Attachments:
OpenPGP_0xB0DE9DD628BF132F.asc (3.66 kB)
OpenPGP public key
OpenPGP_signature.asc (505.00 B)
OpenPGP digital signature
Download all attachments