eventfd_link_misc's minor number shall be MISC_DYNAMIC_MINOR to let Linux 
kernel dynamically assign one while loading.

Signed-off-by: Xiaobo Chi <xiaobo.chi at nokia.com>
---
 lib/librte_vhost/eventfd_link/eventfd_link.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_vhost/eventfd_link/eventfd_link.c 
b/lib/librte_vhost/eventfd_link/eventfd_link.c
index c54a938..4b05b5a 100644
--- a/lib/librte_vhost/eventfd_link/eventfd_link.c
+++ b/lib/librte_vhost/eventfd_link/eventfd_link.c
@@ -249,6 +249,7 @@ static const struct file_operations eventfd_link_fops = {


 static struct miscdevice eventfd_link_misc = {
+       .minor = MISC_DYNAMIC_MINOR,
        .name = "eventfd-link",
        .fops = &eventfd_link_fops,
 };
-- 
1.9.4.msysgit.2

Reply via email to