Skip to contentSkip to conversation

vdpa: fix typos in comments

PATCH In review Hemanth Selam 2 participants 6 messages Sep 4 – Nov 19

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vdpa: fix typos in comments

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/vdpa/alibaba/eni_vdpa.c | 2 +-
 include/uapi/linux/virtio_net.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/vdpa/alibaba/eni_vdpa.c +1 -1
index fd6fdba46094..6bb5f6ef57cf 100644
@@ -273,7 +273,7 @@ static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid,
 	struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa);
 	const struct vdpa_vq_state_split *split = &state->split;
 
-	/* ENI is build upon virtio-pci specfication which not support
+	/* ENI is build upon virtio-pci specification which not support
 	 * to set state of virtqueue. But if the state is equal to the
 	 * device initial state by chance, we can let it go.
 	 */
include/uapi/linux/virtio_net.h +1 -1
index 1db45b01532b..4a458ebb2567 100644
@@ -316,7 +316,7 @@ struct virtio_net_ctrl_mac {
  * Control link announce acknowledgement
  *
  * The command VIRTIO_NET_CTRL_ANNOUNCE_ACK is used to indicate that
- * driver has recevied the notification; device would clear the
+ * driver has received the notification; device would clear the
  * VIRTIO_NET_S_ANNOUNCE bit in the status field after it receives
  * this command.
  */
Signature · 1 line
2.48.1
#1 lore raw
Quoted 16 lines · Hemanth Selam

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/vdpa/alibaba/eni_vdpa.c | 2 +-
 include/uapi/linux/virtio_net.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/vdpa/alibaba/eni_vdpa.c +0 -0
index fd6fdba46094..6bb5f6ef57cf 100644

drivers/vdpa/alibaba/eni_vdpa.c static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, · line 279

Quoted 8 lines
drivers/vdpa/alibaba/eni_vdpa.c +1 -1
@@ -273,7 +273,7 @@ static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid,
 	struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa);
 	const struct vdpa_vq_state_split *split = &state->split;
 
-	/* ENI is build upon virtio-pci specfication which not support
+	/* ENI is build upon virtio-pci specification which not support
 	 * to set state of virtqueue. But if the state is equal to the
 	 * device initial state by chance, we can let it go.
 	 */

given you are bothering - built, not build

include/uapi/linux/virtio_net.h struct virtio_net_ctrl_mac { · line 322

Quoted 13 lines
include/uapi/linux/virtio_net.h +1 -1
index 1db45b01532b..4a458ebb2567 100644
@@ -316,7 +316,7 @@ struct virtio_net_ctrl_mac {
  * Control link announce acknowledgement
  *
  * The command VIRTIO_NET_CTRL_ANNOUNCE_ACK is used to indicate that
- * driver has recevied the notification; device would clear the
+ * driver has received the notification; device would clear the
  * VIRTIO_NET_S_ANNOUNCE bit in the status field after it receives
  * this command.
  */

separate patch pls.

Quoted 2 lines
Signature · 1 line
2.48.1
#2 lore raw

v2 cover vdpa: fix typos in comments

v1 was a single patch touching both drivers/vdpa/alibaba/eni_vdpa.c and include/uapi/linux/virtio_net.h. Michael asked for the uapi header to be split out, and pointed out that the eni_vdpa.c comment also says "ENI is build upon" where it means "built", so patch 1 now fixes that alongside the "specfication" it was sent for.

Nothing outside comments changes in either patch.

v1: https://lore.kernel.org/all/[email protected]/

Hemanth Selam (2):
vdpa: alibaba: fix typos in comment
virtio_net: fix typo in the ANNOUNCE_ACK comment

 drivers/vdpa/alibaba/eni_vdpa.c | 2 +-
 include/uapi/linux/virtio_net.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.48.1
#3 lore raw

PATCH v2 1/2 vdpa: alibaba: fix typos in comment

The comment above eni_vdpa_set_vq_state() misspells "specification", and "ENI is build upon" should be "built".

---
 drivers/vdpa/alibaba/eni_vdpa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vdpa/alibaba/eni_vdpa.c +1 -1
index 1288402d3dd8..af163b4f9259 100644
@@ -276,7 +276,7 @@ static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid,
 	struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa);
 	const struct vdpa_vq_state_split *split = &state->split;
 
-	/* ENI is build upon virtio-pci specfication which not support
+	/* ENI is built upon virtio-pci specification which not support
 	 * to set state of virtqueue. But if the state is equal to the
 	 * device initial state by chance, we can let it go.
 	 */
Signature · 1 line
2.48.1
#4 lore raw

Re: [PATCH v2 1/2] vdpa: alibaba: fix typos in comment

Quoted 14 lines · Hemanth Selam

The comment above eni_vdpa_set_vq_state() misspells "specification", and "ENI is build upon" should be "built".

---
 drivers/vdpa/alibaba/eni_vdpa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vdpa/alibaba/eni_vdpa.c +0 -0
index 1288402d3dd8..af163b4f9259 100644

drivers/vdpa/alibaba/eni_vdpa.c static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, · line 280

Quoted 6 lines
drivers/vdpa/alibaba/eni_vdpa.c +1 -1
@@ -276,7 +276,7 @@ static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid,
 	struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa);
 	const struct vdpa_vq_state_split *split = &state->split;
 
-	/* ENI is build upon virtio-pci specfication which not support
+	/* ENI is built upon virtio-pci specification which not support
 	 * to set state of virtqueue.

which does not support a way

Quoted 5 lines

But if the state is equal to the

drivers/vdpa/alibaba/eni_vdpa.c +0 -0
 	 * device initial state by chance, we can let it go.
 	 */
Signature · 1 line
2.48.1
#5 lore raw

PATCH v2 2/2 virtio_net: fix typo in the ANNOUNCE_ACK comment

In reply to Hemanth Selam

The comment describing VIRTIO_NET_CTRL_ANNOUNCE_ACK misspells "received".

---
 include/uapi/linux/virtio_net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/virtio_net.h +1 -1
index 1db45b01532b..4a458ebb2567 100644
@@ -316,7 +316,7 @@ struct virtio_net_ctrl_mac {
  * Control link announce acknowledgement
  *
  * The command VIRTIO_NET_CTRL_ANNOUNCE_ACK is used to indicate that
- * driver has recevied the notification; device would clear the
+ * driver has received the notification; device would clear the
  * VIRTIO_NET_S_ANNOUNCE bit in the status field after it receives
  * this command.
  */
Signature · 1 line
2.48.1