]> xenbits.xensource.com Git - mini-os.git/commitdiff
mini-os: Fix outdated init_netfront() calls
authorCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 27 Aug 2020 16:45:36 +0000 (19:45 +0300)
committerWei Liu <wl@xen.org>
Fri, 28 Aug 2020 08:43:37 +0000 (08:43 +0000)
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@suse.com>
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
netfront.c
test.c

index 58eb55e4cc40262c84f437fae9dc69347d342a7e..205484bd6fd9a122af878efb216b4ef25868a9f9 100644 (file)
@@ -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 42a2666182e0848a801042bbbc5bffc55ce9f01b..2e5f7f99ad0fdb83adab91dacfee1f80c91a9877 100644 (file)
--- 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