Skip to contentSkip to conversation

xen: 'keyhandler' is not used in null scheduler

PATCH In review Baodong Chen 2 participants 3 messages May 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: 'keyhandler' is not used in null scheduler

So remove 'keyhandler.h' include.
Also add 'static' prefix for 'schud_bull_def'

---
 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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Baodong Chen

So remove 'keyhandler.h' include.
Also add 'static' prefix for 'schud_bull_def'

Thanks for the patch — these changes look good. I think the title would be better something like:

xen/sched_null: Superficial clean-ups

Then just list both in bullet points; something like:

* Remove unused dependency ‘keyhandler.’h
* Make sched_null_def static

Would you mind re-sending the patch? You can add:

Thanks,
-George

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

#2 lore raw

Hello George,

Quoted 10 lines · George Dunlap
Quoted 6 lines · Baodong Chen

So remove 'keyhandler.h' include.
Also add 'static' prefix for 'schud_bull_def'

Thanks for the patch — these changes look good. I think the title would be better something like:

xen/sched_null: Superficial clean-ups

Quoted 8 lines

Then just list both in bullet points; something like:

* Remove unused dependency ‘keyhandler.’h
* Make sched_null_def static

Would you mind re-sending the patch? You can add:

Thanks for your review, resent.

Quoted 3 lines

Thanks,
-George

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