* [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment
@ 2025-05-29 8:42 Alok Tiwari
2025-05-29 8:42 ` [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs Alok Tiwari
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Alok Tiwari @ 2025-05-29 8:42 UTC (permalink / raw)
To: david, mst, jasowang, xuanzhuo, eperezma, virtualization
Cc: alok.a.tiwari, linux-kernel, darren.kenny
Corrected "suceess" to "success" in the function documentation
for clarity.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
---
v1 -> v2
No changes; only added Acked-by: Jason Wang.
---
drivers/virtio/virtio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 95d5d7993e5b..2c022640ec4b 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -506,7 +506,7 @@ static int virtio_device_of_init(struct virtio_device *dev)
* On error, the caller must call put_device on &@dev->dev (and not kfree),
* as another code path may have obtained a reference to @dev.
*
- * Returns: 0 on suceess, -error on failure
+ * Returns: 0 on success, -error on failure
*/
int register_virtio_device(struct virtio_device *dev)
{
--
2.47.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs
2025-05-29 8:42 [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Alok Tiwari
@ 2025-05-29 8:42 ` Alok Tiwari
2025-05-30 9:30 ` David Hildenbrand
2025-05-29 8:42 ` [PATCH v2 3/3] virtio_ring: Fix typos in comments and documentation Alok Tiwari
2025-06-13 1:45 ` [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Xuan Zhuo
2 siblings, 1 reply; 5+ messages in thread
From: Alok Tiwari @ 2025-05-29 8:42 UTC (permalink / raw)
To: david, mst, jasowang, xuanzhuo, eperezma, virtualization
Cc: alok.a.tiwari, linux-kernel, darren.kenny
Corrected several spelling mistakes in code comments, including:
- "bock" -> "block"
- "valued" -> "value"
- "actipn" -> "action"
- "accidentially" -> "accidentally"
- Improved grammar in a few places for clarity.
These changes are purely cosmetic and do not affect functionality.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
v1 -> v2
retained original wording "getting onlined" per David's comment.
---
drivers/virtio/virtio_mem.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c
index 56d0dbe62163..90f7739858e0 100644
--- a/drivers/virtio/virtio_mem.c
+++ b/drivers/virtio/virtio_mem.c
@@ -164,7 +164,7 @@ struct virtio_mem {
unsigned long first_mb_id;
/* Id of the last usable memory block of this device. */
unsigned long last_usable_mb_id;
- /* Id of the next memory bock to prepare when needed. */
+ /* Id of the next memory block to prepare when needed. */
unsigned long next_mb_id;
/* The subblock size. */
@@ -209,7 +209,7 @@ struct virtio_mem {
unsigned long first_bb_id;
/* Id of the last usable big block of this device. */
unsigned long last_usable_bb_id;
- /* Id of the next device bock to prepare when needed. */
+ /* Id of the next device block to prepare when needed. */
unsigned long next_bb_id;
/* Summary of all big block states. */
@@ -240,7 +240,7 @@ struct virtio_mem {
/* An error occurred we cannot handle - stop processing requests. */
bool broken;
- /* Cached valued of is_kdump_kernel() when the device was probed. */
+ /* Cached value of is_kdump_kernel() when the device was probed. */
bool in_kdump;
/* The driver is being removed. */
@@ -808,7 +808,7 @@ static int virtio_mem_sbm_try_remove_unplugged_mb(struct virtio_mem *vm,
}
/*
- * See virtio_mem_offline_and_remove_memory(): Try to offline and remove a
+ * See virtio_mem_offline_and_remove_memory(): Try to offline and remove
* all Linux memory blocks covered by the big block.
*/
static int virtio_mem_bbm_offline_and_remove_bb(struct virtio_mem *vm,
@@ -1080,7 +1080,7 @@ static int virtio_mem_memory_notifier_cb(struct notifier_block *nb,
atomic64_sub(size, &vm->offline_size);
/*
* Start adding more memory once we onlined half of our
- * threshold. Don't trigger if it's possibly due to our actipn
+ * threshold. Don't trigger if it's possibly due to our action
* (e.g., us adding memory which gets onlined immediately from
* the core).
*/
@@ -2124,7 +2124,7 @@ static int virtio_mem_sbm_unplug_request(struct virtio_mem *vm, uint64_t diff)
* whole memory blocks along with metadata. We prioritize ZONE_MOVABLE
* as it's more reliable to unplug memory and remove whole memory
* blocks, and we don't want to trigger a zone imbalances by
- * accidentially removing too much kernel memory.
+ * accidentally removing too much kernel memory.
*/
for (i = 0; i < ARRAY_SIZE(mb_states); i++) {
virtio_mem_sbm_for_each_mb_rev(vm, mb_id, mb_states[i]) {
--
2.47.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] virtio_ring: Fix typos in comments and documentation
2025-05-29 8:42 [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Alok Tiwari
2025-05-29 8:42 ` [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs Alok Tiwari
@ 2025-05-29 8:42 ` Alok Tiwari
2025-06-13 1:45 ` [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Xuan Zhuo
2 siblings, 0 replies; 5+ messages in thread
From: Alok Tiwari @ 2025-05-29 8:42 UTC (permalink / raw)
To: david, mst, jasowang, xuanzhuo, eperezma, virtualization
Cc: alok.a.tiwari, linux-kernel, darren.kenny
Corrected several typos in virtio_ring.c for improved clarity and
consistency. Fixes include:
- "dind't" -> "didn't"
- "use" -> "uses" in DMA mapping context
- "can been used" -> "can be used"
- "buf size for sync" -> "buffer size to synchronize"
No functional changes.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
v1 -> v2
corrected "dind't" to "didn't",
which was missed in the previous patch.
---
drivers/virtio/virtio_ring.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index b784aab66867..3191fb2a9a01 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -320,7 +320,7 @@ static void *vring_alloc_queue(struct virtio_device *vdev, size_t size,
*dma_handle = (dma_addr_t)phys_addr;
/*
- * Sanity check: make sure we dind't truncate
+ * Sanity check: make sure we didn't truncate
* the address. The only arches I can find that
* have 64-bit phys_addr_t but 32-bit dma_addr_t
* are certain non-highmem MIPS and x86
@@ -606,7 +606,7 @@ static inline int virtqueue_add_split(struct virtqueue *_vq,
prev = i;
/* Note that we trust indirect descriptor
- * table since it use stream DMA mapping.
+ * table since it uses stream DMA mapping.
*/
i = virtqueue_add_desc_split(_vq, desc, extra, i, addr, len,
VRING_DESC_F_NEXT,
@@ -623,7 +623,7 @@ static inline int virtqueue_add_split(struct virtqueue *_vq,
prev = i;
/* Note that we trust indirect descriptor
- * table since it use stream DMA mapping.
+ * table since it uses stream DMA mapping.
*/
i = virtqueue_add_desc_split(_vq, desc, extra, i, addr, len,
VRING_DESC_F_NEXT |
@@ -2438,7 +2438,7 @@ EXPORT_SYMBOL_GPL(virtqueue_add_inbuf_premapped);
* virtqueue_dma_dev - get the dma dev
* @_vq: the struct virtqueue we're talking about.
*
- * Returns the dma dev. That can been used for dma api.
+ * Returns the dma dev. That can be used for dma api.
*/
struct device *virtqueue_dma_dev(struct virtqueue *_vq)
{
@@ -3225,7 +3225,7 @@ EXPORT_SYMBOL_GPL(virtqueue_dma_need_sync);
* @_vq: the struct virtqueue we're talking about.
* @addr: DMA address
* @offset: DMA address offset
- * @size: buf size for sync
+ * @size: buffer size to synchronize
* @dir: DMA direction
*
* Before calling this function, use virtqueue_dma_need_sync() to confirm that
@@ -3252,7 +3252,7 @@ EXPORT_SYMBOL_GPL(virtqueue_dma_sync_single_range_for_cpu);
* @_vq: the struct virtqueue we're talking about.
* @addr: DMA address
* @offset: DMA address offset
- * @size: buf size for sync
+ * @size: buffer size to synchronize
* @dir: DMA direction
*
* Before calling this function, use virtqueue_dma_need_sync() to confirm that
--
2.47.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs
2025-05-29 8:42 ` [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs Alok Tiwari
@ 2025-05-30 9:30 ` David Hildenbrand
0 siblings, 0 replies; 5+ messages in thread
From: David Hildenbrand @ 2025-05-30 9:30 UTC (permalink / raw)
To: Alok Tiwari, mst, jasowang, xuanzhuo, eperezma, virtualization
Cc: linux-kernel, darren.kenny
On 29.05.25 10:42, Alok Tiwari wrote:
> Corrected several spelling mistakes in code comments, including:
> - "bock" -> "block"
> - "valued" -> "value"
> - "actipn" -> "action"
> - "accidentially" -> "accidentally"
> - Improved grammar in a few places for clarity.
>
> These changes are purely cosmetic and do not affect functionality.
>
> Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Cheers,
David / dhildenb
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment
2025-05-29 8:42 [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Alok Tiwari
2025-05-29 8:42 ` [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs Alok Tiwari
2025-05-29 8:42 ` [PATCH v2 3/3] virtio_ring: Fix typos in comments and documentation Alok Tiwari
@ 2025-06-13 1:45 ` Xuan Zhuo
2 siblings, 0 replies; 5+ messages in thread
From: Xuan Zhuo @ 2025-06-13 1:45 UTC (permalink / raw)
To: Alok Tiwari
Cc: alok.a.tiwari, linux-kernel, darren.kenny, david, mst, jasowang,
eperezma, virtualization
On Thu, 29 May 2025 01:42:39 -0700, Alok Tiwari <alok.a.tiwari@oracle.com> wrote:
> Corrected "suceess" to "success" in the function documentation
> for clarity.
>
> Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
> Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
> ---
> v1 -> v2
> No changes; only added Acked-by: Jason Wang.
> ---
> drivers/virtio/virtio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
> index 95d5d7993e5b..2c022640ec4b 100644
> --- a/drivers/virtio/virtio.c
> +++ b/drivers/virtio/virtio.c
> @@ -506,7 +506,7 @@ static int virtio_device_of_init(struct virtio_device *dev)
> * On error, the caller must call put_device on &@dev->dev (and not kfree),
> * as another code path may have obtained a reference to @dev.
> *
> - * Returns: 0 on suceess, -error on failure
> + * Returns: 0 on success, -error on failure
> */
> int register_virtio_device(struct virtio_device *dev)
> {
> --
> 2.47.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-13 1:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-29 8:42 [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Alok Tiwari
2025-05-29 8:42 ` [PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs Alok Tiwari
2025-05-30 9:30 ` David Hildenbrand
2025-05-29 8:42 ` [PATCH v2 3/3] virtio_ring: Fix typos in comments and documentation Alok Tiwari
2025-06-13 1:45 ` [PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment Xuan Zhuo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®