Thread (10 messages) 10 messages, 4 authors, 2021-03-30

Re: [PATCH 03/18] vfio/mdev: Simplify driver registration

From: Christoph Hellwig <hch@lst.de>
Date: 2021-03-23 19:15:22
Also in: kvm

 static struct mdev_driver vfio_mdev_driver = {
+	.driver = {
+		.name = "vfio_mdev",
+		.owner = THIS_MODULE,
+		.mod_name = KBUILD_MODNAME,
+	},
What is the mod_name initialization for?  I've not really seen
that in anywere else, and the only user seems to be
module_add_driver for a rather odd case we shouldn't hit here.

The rest looks good to me:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help