xen: 'keyhandler' is not used in null scheduler
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
@@ -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
Quoted 7 lines · Baodong Chen
So remove '
keyhandler.h' include.
Also add 'static' prefix for 'schud_bull_def'Signed-off-by Baodong Chen <[email protected]>
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
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'Signed-off-by Baodong Chen <[email protected]>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
* Makesched_null_defstaticWould you mind re-sending the patch? You can add:
Reviewed-by George Dunlap <[email protected]>
Thanks for your review, resent.
Quoted 3 lines
Thanks,
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel