From: Costin Lupu Date: Thu, 27 Aug 2020 16:45:36 +0000 (+0300) Subject: mini-os: Fix outdated init_netfront() calls X-Git-Tag: xen-4.16.0-rc4~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6d8cc92c91cb1e7d9d2fd4cdb1500ac3b361a5ad;p=mini-os.git 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 Signed-off-by: Costin Lupu Reviewed-by: Samuel Thibault --- 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