[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mini-os master] mini-os: Fix outdated init_netfront() calls



commit 6d8cc92c91cb1e7d9d2fd4cdb1500ac3b361a5ad
Author:     Costin Lupu <costin.lupu@xxxxxxxxx>
AuthorDate: Thu Aug 27 19:45:36 2020 +0300
Commit:     Wei Liu <wl@xxxxxxx>
CommitDate: Fri Aug 28 08:43:37 2020 +0000

    mini-os: Fix outdated init_netfront() calls
    
    Commit 1b8ed31f changed the init_netfront() declaration. This patch fixes a
    couple of calls that were overlooked for that initial commit.
    
    Reported-by: Jan Beulich <jbeulich@xxxxxxxx>
    Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
    Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
---
 netfront.c | 2 +-
 test.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/netfront.c b/netfront.c
index 58eb55e..205484b 100644
--- a/netfront.c
+++ b/netfront.c
@@ -576,7 +576,7 @@ error:
 int netfront_tap_open(char *nodename) {
     struct netfront_dev *dev;
 
-    dev = init_netfront(nodename, NETIF_SELECT_RX, NULL, NULL);
+    dev = init_netfront(nodename, NETIF_SELECT_RX, NULL, NULL, NULL, NULL);
     if (!dev) {
        printk("TAP open failed\n");
        errno = EIO;
diff --git a/test.c b/test.c
index 42a2666..2e5f7f9 100644
--- a/test.c
+++ b/test.c
@@ -91,7 +91,7 @@ static struct semaphore net_sem = 
__SEMAPHORE_INITIALIZER(net_sem, 0);
 
 static void netfront_thread(void *p)
 {
-    net_dev = init_netfront(NULL, NULL, NULL, NULL);
+    net_dev = init_netfront(NULL, NULL, NULL, NULL, NULL, NULL);
     up(&net_sem);
 }
 #endif
--
generated by git-patchbot for /home/xen/git/mini-os.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.