Skip to contentSkip to conversation

xen/sched_null: Superficial clean-ups

PATCH New Baodong Chen 1 participant 1 message May 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/sched_null: Superficial clean-ups

* Remove unused dependency 'keyhandler.h'
* Make sched_null_def static

---
 xen/common/sched_null.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
xen/common/sched_null.c +1 -2
index a59dbb2..c9700f1 100644
@@ -31,7 +31,6 @@
 #include <xen/sched.h>
 #include <xen/sched-if.h>
 #include <xen/softirq.h>
-#include <xen/keyhandler.h>
 #include <xen/trace.h>
 
 /*
@@ -871,7 +870,7 @@ static void null_dump(const struct scheduler *ops)
     spin_unlock_irqrestore(&prv->lock, flags);
 }
 
-const struct scheduler sched_null_def = {
+static const struct scheduler sched_null_def = {
     .name           = "null Scheduler",
     .opt_name       = "null",
     .sched_id       = XEN_SCHEDULER_NULL,
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel