[PATCH] Fix comment for virtio-9p

dancer@debian.org posted 1 patch 5 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250527041123.840063-1-dancer@debian.org
There is a newer version of this series
include/uapi/linux/virtio_ids.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] Fix comment for virtio-9p
Posted by dancer@debian.org 5 months, 3 weeks ago
From: Junichi Uekawa <uekawa@chromium.org>

virtio-9p is not a console protocol, it's a file sharing protocol. Seems
like an artifact of old copy-and-paste error.

Fixes: 3ca4f5ca7305 ("virtio: add virtio IDs file")
Signed-off-by: Junichi Uekawa <uekawa@chromium.org>
---
 include/uapi/linux/virtio_ids.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/virtio_ids.h b/include/uapi/linux/virtio_ids.h
index 7aa2eb766205..deb9dfa52944 100644
--- a/include/uapi/linux/virtio_ids.h
+++ b/include/uapi/linux/virtio_ids.h
@@ -37,7 +37,7 @@
 #define VIRTIO_ID_IOMEM			6 /* virtio ioMemory */
 #define VIRTIO_ID_RPMSG			7 /* virtio remote processor messaging */
 #define VIRTIO_ID_SCSI			8 /* virtio scsi */
-#define VIRTIO_ID_9P			9 /* 9p virtio console */
+#define VIRTIO_ID_9P			9 /* virtio 9p */
 #define VIRTIO_ID_MAC80211_WLAN		10 /* virtio WLAN MAC */
 #define VIRTIO_ID_RPROC_SERIAL		11 /* virtio remoteproc serial link */
 #define VIRTIO_ID_CAIF			12 /* Virtio caif */
-- 
2.49.0.1164.gab81da1b16-goog
Re: [PATCH] Fix comment for virtio-9p
Posted by Michael Tokarev 5 months, 3 weeks ago
27.05.2025 07:11, dancer@debian.org wrote:
> From: Junichi Uekawa <uekawa@chromium.org>
> 
> virtio-9p is not a console protocol, it's a file sharing protocol. Seems
> like an artifact of old copy-and-paste error.

> -#define VIRTIO_ID_9P			9 /* 9p virtio console */
> +#define VIRTIO_ID_9P			9 /* virtio 9p */

While the old one was obviously wrong, I don't think the new
wording makes much sense, since it merely repeats the name of
the constant :)

How about "virtio 9p file sharing protocol" instead ? :)

/mjt
Re: [PATCH] Fix comment for virtio-9p
Posted by Junichi Uekawa 5 months, 3 weeks ago
On Tue, 27 May 2025 15:11:36 +0900,
Michael Tokarev wrote:
> 
> 27.05.2025 07:11, dancer@debian.org wrote:
> > From: Junichi Uekawa <uekawa@chromium.org>
> > 
> > virtio-9p is not a console protocol, it's a file sharing protocol. Seems
> > like an artifact of old copy-and-paste error.
> 
> > -#define VIRTIO_ID_9P			9 /* 9p virtio console */
> > +#define VIRTIO_ID_9P			9 /* virtio 9p */
> 
> While the old one was obviously wrong, I don't think the new
> wording makes much sense, since it merely repeats the name of
> the constant :)
> 
> How about "virtio 9p file sharing protocol" instead ? :)

Sounds better!

I also found another case, added to the follow-up.
[PATCH] Fix comment for virtio-9p
Posted by dancer@debian.org 5 months, 3 weeks ago
From: Junichi Uekawa <dancer@debian.org>

virtio-9p is not a console protocol, it's a file sharing protocol. Seems
like an artifact of old copy-and-paste error.

Fixes: 3ca4f5ca7305 ("virtio: add virtio IDs file")
Signed-off-by: Junichi Uekawa <dancer@debian.org>
---
 include/uapi/linux/virtio_ids.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/uapi/linux/virtio_ids.h b/include/uapi/linux/virtio_ids.h
index 7aa2eb766205..747e93a91920 100644
--- a/include/uapi/linux/virtio_ids.h
+++ b/include/uapi/linux/virtio_ids.h
@@ -37,7 +37,7 @@
 #define VIRTIO_ID_IOMEM			6 /* virtio ioMemory */
 #define VIRTIO_ID_RPMSG			7 /* virtio remote processor messaging */
 #define VIRTIO_ID_SCSI			8 /* virtio scsi */
-#define VIRTIO_ID_9P			9 /* 9p virtio console */
+#define VIRTIO_ID_9P			9 /* virtio 9p file sharing protocol */
 #define VIRTIO_ID_MAC80211_WLAN		10 /* virtio WLAN MAC */
 #define VIRTIO_ID_RPROC_SERIAL		11 /* virtio remoteproc serial link */
 #define VIRTIO_ID_CAIF			12 /* Virtio caif */
@@ -79,6 +79,6 @@
 #define VIRTIO_TRANS_ID_CONSOLE		0x1003 /* transitional virtio console */
 #define VIRTIO_TRANS_ID_SCSI		0x1004 /* transitional virtio SCSI */
 #define VIRTIO_TRANS_ID_RNG		0x1005 /* transitional virtio rng */
-#define VIRTIO_TRANS_ID_9P		0x1009 /* transitional virtio 9p console */
+#define VIRTIO_TRANS_ID_9P		0x1009 /* transitional virtio 9p file sharing protocol */
 
 #endif /* _LINUX_VIRTIO_IDS_H */
-- 
2.39.5