From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

Fix another aarch64 compilation error

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/drivers/virtio-blk.cc b/drivers/virtio-blk.cc
--- a/drivers/virtio-blk.cc
+++ b/drivers/virtio-blk.cc
@@ -144,11 +144,13 @@ blk::blk(virtio_device& virtio_dev)
             [=] { t->wake(); });
     };

+#ifndef AARCH64_PORT_STUB
     int_factory.create_gsi_edge_interrupt = [this,t]() {
         return new gsi_edge_interrupt(
                 _dev.get_irq(),
                 [=] { if (this->ack_irq()) t->wake(); });
     };
+#endif

     _dev.register_interrupt(int_factory);

diff --git a/drivers/virtio-net.cc b/drivers/virtio-net.cc
--- a/drivers/virtio-net.cc
+++ b/drivers/virtio-net.cc
@@ -317,11 +317,13 @@ net::net(virtio_device& dev)
             [=] { poll_task->wake(); });
     };

+#ifndef AARCH64_PORT_STUB
     int_factory.create_gsi_edge_interrupt = [this,poll_task]() {
         return new gsi_edge_interrupt(
             _dev.get_irq(),
             [=] { if (this->ack_irq()) poll_task->wake(); });
     };
+#endif

     _dev.register_interrupt(int_factory);

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to