vdpa: fix typos in comments
Subsystems (4)
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.
--- 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
@@ -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
@@ -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
Michael S. Tsirkin
maintainerQuoted 16 lines · Hemanth Selam
Fix typos in comments, reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- 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
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@@ -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
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
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
@@ -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
Michael S. Tsirkin
maintainerRe: [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".Signed-off-by Hemanth Selam <[email protected]>--- drivers/vdpa/alibaba/eni_vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/vdpa/alibaba/eni_vdpa.c +0
-0
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
PATCH v2 2/2 virtio_net: fix typo in the ANNOUNCE_ACK comment
In reply to Hemanth SelamThe 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
@@ -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