From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

aarch64: gcc 7: fix build

In commit 05baa614c460f7033828adf926ce0224df40fd8f we fixed code which
wrongly uses "new" on types with too strict requirements. We forgot to
fix one place specific to the aarch64 architecture, and it breaks
compilation of aarch64 on gcc 7.2.1. So let's fix it now.

Signed-off-by: Nadav Har'El <n...@scylladb.com>

---
diff --git a/arch/aarch64/smp.cc b/arch/aarch64/smp.cc
--- a/arch/aarch64/smp.cc
+++ b/arch/aarch64/smp.cc
@@ -10,6 +10,7 @@
 #include <osv/sched.hh>
 #include <osv/prio.hh>
 #include <osv/printf.hh>
+#include <osv/aligned_new.hh>
 #include "processor.hh"
 #include "psci.hh"
 #include "arch-dtb.hh"
@@ -62,7 +63,7 @@ void smp_init()
     sched::current_cpu = sched::cpus[0];

     for (auto c : sched::cpus) {
- c->incoming_wakeups = new sched::cpu::incoming_wakeup_queue[sched::cpus.size()]; + c->incoming_wakeups = aligned_array_new<sched::cpu::incoming_wakeup_queue>(sched::cpus.size());
     }
 }

--
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 osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to